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-07-10 21:28:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-10 21:28:53 +0400
commit8012053e1e178c8cabb133e05dc1e36d52908fa7 (patch)
treefd3f79b7e8cd9ee165ff2ece9a1ef9d2cf7ca058 /curve_simplify.py
parent0507e7a5b8dd558e12c906dd398a6e0bd7f76911 (diff)
cleanup
- remove unused imports - remove/comment unused vars - fix for some bugs with unused vars being used
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 14284941..660d1192 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -194,11 +194,10 @@ def simplify_RDP(splineVerts, options):
##########################
# set bezierhandles to auto
def setBezierHandles(newCurve):
- scene = bpy.context.scene
- bpy.ops.object.mode_set(mode='EDIT', toggle=True)
- bpy.ops.curve.select_all(action='SELECT')
- bpy.ops.curve.handle_type_set(type='AUTOMATIC')
- bpy.ops.object.mode_set(mode='OBJECT', toggle=True)
+ bpy.ops.object.mode_set(mode='EDIT', toggle=True)
+ bpy.ops.curve.select_all(action='SELECT')
+ bpy.ops.curve.handle_type_set(type='AUTOMATIC')
+ bpy.ops.object.mode_set(mode='OBJECT', toggle=True)
# get array of new coords for new spline from vertindices
def vertsToPoints(newVerts, splineVerts, splineType):
@@ -321,8 +320,6 @@ def selectedfcurves(obj):
def fcurves_simplify(context, obj, options, fcurves):
# main vars
mode = options[0]
- scene = context.scene
- fcurves_obj = obj.animation_data.action.fcurves
#get indices of selected fcurves
fcurve_sel = selectedfcurves(obj)