forked from bartvdbraak/blender
Context for Object Align op = Object mode
This commit is contained in:
parent
d524f46335
commit
f5cf555e6c
@ -265,6 +265,9 @@ class AlignObjects(bpy.types.Operator):
|
|||||||
align_z = BoolProperty(name="Align Z",
|
align_z = BoolProperty(name="Align Z",
|
||||||
description="Align in the Z axis", default=False)
|
description="Align in the Z axis", default=False)
|
||||||
|
|
||||||
|
def poll(self, context):
|
||||||
|
return context.mode == 'OBJECT'
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
|
||||||
align_mode = self.properties.align_mode
|
align_mode = self.properties.align_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user