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:
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