Skip to content
Snippets Groups Projects
Commit 5f49fdf9 authored by Campbell Barton's avatar Campbell Barton
Browse files

update for changes in blender api.

parent b4fb6681
No related branches found
No related tags found
No related merge requests found
......@@ -351,7 +351,7 @@ def fcurves_simplify(context, obj, options, fcurves):
fcurve_sel[fcurve_i].keyframe_points.remove(fcurve_sel[fcurve_i].keyframe_points[i])
# put newPoints into fcurve
for v in newPoints:
fcurve_sel[fcurve_i].keyframe_points.add(frame=v[0],value=v[1])
fcurve_sel[fcurve_i].keyframe_points.insert(frame=v[0],value=v[1])
#fcurve.points.foreach_set('co', newPoints)
return
......
......@@ -693,7 +693,7 @@ def parseAnimDataFCurve(adata, rna, args, tokens):
elif key == 'FModifier':
parseFModifier(fcu, val, sub)
elif key == 'kp':
pt = fcu.keyframe_points.add(n, 0)
pt = fcu.keyframe_points.insert(n, 0)
pt.interpolation = 'LINEAR'
pt = parseKeyFramePoint(pt, val, sub)
n += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment