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.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')