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 /space_view3d_align_tools.py
parent8d94603a8de70935166a933d2fb0f9af369d567f (diff)
update for changes in blender.
Diffstat (limited to 'space_view3d_align_tools.py')
-rw-r--r--space_view3d_align_tools.py39
1 files changed, 26 insertions, 13 deletions
diff --git a/space_view3d_align_tools.py b/space_view3d_align_tools.py
index 31a04d11..2d577f4a 100644
--- a/space_view3d_align_tools.py
+++ b/space_view3d_align_tools.py
@@ -155,7 +155,8 @@ class AlignOperator(bpy.types.Operator):
bl_idname = "object.AlignObjects"
bl_label = "Align Selected To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -169,7 +170,8 @@ class AlignLocationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationAll"
bl_label = "Align Selected Location To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -181,7 +183,8 @@ class AlignLocationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationX"
bl_label = "Align Selected Location X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -193,7 +196,8 @@ class AlignLocationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationY"
bl_label = "Align Selected Location Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -205,7 +209,8 @@ class AlignLocationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationZ"
bl_label = "Align Selected Location Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -219,7 +224,8 @@ class AlignRotationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationAll"
bl_label = "Align Selected Rotation To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -231,7 +237,8 @@ class AlignRotationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationX"
bl_label = "Align Selected Rotation X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -243,7 +250,8 @@ class AlignRotationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationY"
bl_label = "Align Selected Rotation Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -255,7 +263,8 @@ class AlignRotationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationZ"
bl_label = "Align Selected Rotation Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -268,7 +277,8 @@ class AlignScaleOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleAll"
bl_label = "Align Selected Scale To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -280,7 +290,8 @@ class AlignScaleXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleX"
bl_label = "Align Selected Scale X To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -292,7 +303,8 @@ class AlignScaleYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleY"
bl_label = "Align Selected Scale Y To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):
@@ -304,7 +316,8 @@ class AlignScaleZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleZ"
bl_label = "Align Selected Scale Z To Active"
- def poll(self, context):
+ @staticmethod
+ def poll(context):
return context.active_object != None
def execute(self, context):