diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-19 00:50:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-19 00:50:52 +0300 |
commit | 5f49fdf9d660b3fb3041ae9f926cf44835d1f236 (patch) | |
tree | 9510473897cc385cc0fe4f44dc14410aa46fe896 | |
parent | b4fb6681488f93db7ddb2fb1c419aa324e23e44b (diff) |
update for changes in blender api.
-rw-r--r-- | curve_simplify.py | 2 | ||||
-rw-r--r-- | io_import_scene_mhx.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/curve_simplify.py b/curve_simplify.py index 43a9c4b7..280b7120 100644 --- a/curve_simplify.py +++ b/curve_simplify.py @@ -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 diff --git a/io_import_scene_mhx.py b/io_import_scene_mhx.py index 273848c1..3b744846 100644 --- a/io_import_scene_mhx.py +++ b/io_import_scene_mhx.py @@ -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 |