From 5f49fdf9d660b3fb3041ae9f926cf44835d1f236 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Tue, 18 Jan 2011 21:50:52 +0000 Subject: [PATCH] update for changes in blender api. --- curve_simplify.py | 2 +- io_import_scene_mhx.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/curve_simplify.py b/curve_simplify.py index 43a9c4b7a..280b7120c 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 273848c1c..3b7448463 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 -- GitLab