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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 8b1fc0ad..8533769d 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -254,7 +254,7 @@ def main(context, obj, options):
for splineVert in spline.bezier_points.values()]
else: # verts from all other types of curves
- splineVerts = [splineVert.co.copy().resize3D()
+ splineVerts = [splineVert.co.to_3d()
for splineVert in spline.points.values()]
# simplify spline according to mode
@@ -304,7 +304,7 @@ def getFcurveData(obj):
fcurves = []
for fc in obj.animation_data.action.fcurves:
if fc.select:
- fcVerts = [vcVert.co.copy().resize3D()
+ fcVerts = [vcVert.co.to_3d()
for vcVert in fc.keyframe_points.values()]
fcurves.append(fcVerts)
return fcurves