Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/op/object_align.py')
-rw-r--r--release/scripts/op/object_align.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/op/object_align.py b/release/scripts/op/object_align.py
index 39b642c1b9f..d156ccf37c0 100644
--- a/release/scripts/op/object_align.py
+++ b/release/scripts/op/object_align.py
@@ -263,7 +263,8 @@ class AlignObjects(bpy.types.Operator):
align_z = BoolProperty(name="Align Z",
description="Align in the Z axis", default=False)
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.mode == 'OBJECT'
def execute(self, context):