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>2010-08-05 19:58:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-05 19:58:52 +0400
commitebfb6490e11ae9ae0429737c1bf0e0cd64222f5a (patch)
treed6b7ff4e93a37043d83ceb5dbabfdf8bc2bab117 /curve_simplify.py
parent8d94603a8de70935166a933d2fb0f9af369d567f (diff)
update for changes in blender.
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 6d76c325..aa373a84 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -423,7 +423,8 @@ class GRAPH_OT_simplify(bpy.types.Operator):
col.prop(props, 'error', expand=True)
## Check for animdata
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
fcurves = False
if obj:
@@ -548,7 +549,8 @@ class CURVE_OT_simplify(bpy.types.Operator):
## Check for curve
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
return (obj and obj.type == 'CURVE')