diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2010-12-03 14:05:36 +0300 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2010-12-03 14:05:36 +0300 |
commit | 9295a53022e213a35c105a95a1863887d9d88758 (patch) | |
tree | ebc8b73e84b16f824301cfdb28b67711772663cc /release | |
parent | cfc1b133f664b024acc460e0204bb0bea66a83d3 (diff) |
Align Objects operator was broken due to incorrect order of vector by
matrix multiplication
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/object_align.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/op/object_align.py b/release/scripts/op/object_align.py index ca362e67e79..ff566206a49 100644 --- a/release/scripts/op/object_align.py +++ b/release/scripts/op/object_align.py @@ -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] |