forked from bartvdbraak/blender
fix [#24866] object/transform/align objects error
This commit is contained in:
parent
5e4f03ea08
commit
166980b6fe
@ -34,7 +34,7 @@ def align_objects(align_x, align_y, align_z, align_mode, relative_to):
|
|||||||
for obj in bpy.context.selected_objects:
|
for obj in bpy.context.selected_objects:
|
||||||
if obj.type == 'MESH':
|
if obj.type == 'MESH':
|
||||||
|
|
||||||
bb_world = [obj.matrix_world * Vector(v[:]) for v in obj.bound_box]
|
bb_world = [Vector(v[:]) * obj.matrix_world for v in obj.bound_box]
|
||||||
|
|
||||||
Left_Up_Front = bb_world[1]
|
Left_Up_Front = bb_world[1]
|
||||||
Right_Down_Back = bb_world[7]
|
Right_Down_Back = bb_world[7]
|
||||||
|
Loading…
Reference in New Issue
Block a user