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 /mesh_relax.py
parent8d94603a8de70935166a933d2fb0f9af369d567f (diff)
update for changes in blender.
Diffstat (limited to 'mesh_relax.py')
-rw-r--r--mesh_relax.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesh_relax.py b/mesh_relax.py
index cc752105..42419218 100644
--- a/mesh_relax.py
+++ b/mesh_relax.py
@@ -98,7 +98,8 @@ class Relax(bpy.types.Operator):
iterations = IntProperty(name="Relax iterations",
default=1, min=0, max=100, soft_min=0, soft_max=10)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
obj = context.active_object
return (obj and obj.type == 'MESH')