Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Salazar <zanqdo@gmail.com>2010-12-03 14:05:36 +0300
committerDaniel Salazar <zanqdo@gmail.com>2010-12-03 14:05:36 +0300
commit9295a53022e213a35c105a95a1863887d9d88758 (patch)
treeebc8b73e84b16f824301cfdb28b67711772663cc
parentcfc1b133f664b024acc460e0204bb0bea66a83d3 (diff)
Align Objects operator was broken due to incorrect order of vector by
matrix multiplication
-rw-r--r--release/scripts/op/object_align.py2
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]