Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-19 00:50:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-19 00:50:52 +0300
commit5f49fdf9d660b3fb3041ae9f926cf44835d1f236 (patch)
tree9510473897cc385cc0fe4f44dc14410aa46fe896 /curve_simplify.py
parentb4fb6681488f93db7ddb2fb1c419aa324e23e44b (diff)
update for changes in blender api.
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py2
1 files changed, 1 insertions, 1 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