diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:08:34 +0300 |
commit | 696b0366f5c46dcfcb50f53b4ca4f59c593b88fb (patch) | |
tree | 8dfbeb67383adc39b5742c661f61a55eb4066659 /curve_simplify.py | |
parent | dfd3febce161e76015beb0faac516724aceff453 (diff) |
update for changes in mathutuils.
Diffstat (limited to 'curve_simplify.py')
-rw-r--r-- | curve_simplify.py | 4 |
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 |