Align Objects operator was broken due to incorrect order of vector by
authorDaniel Salazar <zanqdo@gmail.com>
Fri, 3 Dec 2010 11:05:36 +0000 (11:05 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Fri, 3 Dec 2010 11:05:36 +0000 (11:05 +0000)
matrix multiplication

release/scripts/op/object_align.py

index ca362e67e793ac36283d4a0f52d78ac67b1f7e3a..ff566206a4962d2d10b7b30ef6a3eda962ea824a 100644 (file)
@@ -95,7 +95,7 @@ def align_objects(align_x, align_y, align_z, align_mode, relative_to):
         if obj.type == 'MESH':
 
             loc_world = obj.location
-            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]
             Right_Down_Back = bb_world[7]