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-09 05:42:53 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-08-09 05:42:53 +0400
commit2384910b60c161971ba37d7a14874580def12ea0 (patch)
tree33b8174bd04426c6a5b2bed7c2eed12aeb74924c /space_view3d_align_tools.py
parent6367ee9946c8bc0ee9e91fc97d8303ce38991fc4 (diff)
update for changes in blender.
Diffstat (limited to 'space_view3d_align_tools.py')
-rw-r--r--space_view3d_align_tools.py52
1 files changed, 26 insertions, 26 deletions
diff --git a/space_view3d_align_tools.py b/space_view3d_align_tools.py
index 2d577f4a..56543d94 100644
--- a/space_view3d_align_tools.py
+++ b/space_view3d_align_tools.py
@@ -155,8 +155,8 @@ class AlignOperator(bpy.types.Operator):
bl_idname = "object.AlignObjects"
bl_label = "Align Selected To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -170,8 +170,8 @@ class AlignLocationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationAll"
bl_label = "Align Selected Location To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -183,8 +183,8 @@ class AlignLocationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationX"
bl_label = "Align Selected Location X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -196,8 +196,8 @@ class AlignLocationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationY"
bl_label = "Align Selected Location Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -209,8 +209,8 @@ class AlignLocationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsLocationZ"
bl_label = "Align Selected Location Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -224,8 +224,8 @@ class AlignRotationOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationAll"
bl_label = "Align Selected Rotation To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -237,8 +237,8 @@ class AlignRotationXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationX"
bl_label = "Align Selected Rotation X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -250,8 +250,8 @@ class AlignRotationYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationY"
bl_label = "Align Selected Rotation Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -263,8 +263,8 @@ class AlignRotationZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsRotationZ"
bl_label = "Align Selected Rotation Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -277,8 +277,8 @@ class AlignScaleOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleAll"
bl_label = "Align Selected Scale To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -290,8 +290,8 @@ class AlignScaleXOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleX"
bl_label = "Align Selected Scale X To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -303,8 +303,8 @@ class AlignScaleYOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleY"
bl_label = "Align Selected Scale Y To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):
@@ -316,8 +316,8 @@ class AlignScaleZOperator(bpy.types.Operator):
bl_idname = "object.AlignObjectsScaleZ"
bl_label = "Align Selected Scale Z To Active"
- @staticmethod
- def poll(context):
+ @classmethod
+ def poll(cls, context):
return context.active_object != None
def execute(self, context):