diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-14 10:02:55 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-14 10:02:55 +0300 |
commit | e4e79f4aa325d0c67b3792247d370dea1017eb2b (patch) | |
tree | 2d7b49116e761e02b4bf10dc64379126358f8a23 /release/scripts/modules/bpy_types.py | |
parent | e574b3cdcc2cabea2e99dc8ec4ffb0493fead3d2 (diff) |
update for mathutils vector/matrix order change.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index da51b61362d..a9bcf3ab6c6 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -142,19 +142,19 @@ class _GenericBone: def x_axis(self): """ Vector pointing down the x-axis of the bone. """ - return self.matrix.rotation_part() * Vector((1.0, 0.0, 0.0)) + return Vector((1.0, 0.0, 0.0)) * self.matrix.rotation_part() @property def y_axis(self): """ Vector pointing down the x-axis of the bone. """ - return self.matrix.rotation_part() * Vector((0.0, 1.0, 0.0)) + return Vector((0.0, 1.0, 0.0)) * self.matrix.rotation_part() @property def z_axis(self): """ Vector pointing down the x-axis of the bone. """ - return self.matrix.rotation_part() * Vector((0.0, 0.0, 1.0)) + return Vector((0.0, 0.0, 1.0)) * self.matrix.rotation_part() @property def basename(self): @@ -284,13 +284,13 @@ class EditBone(StructRNA, _GenericBone, metaclass=StructMetaIDProp): Expects a 4x4 or 3x3 matrix. """ from mathutils import Vector - z_vec = self.matrix.rotation_part() * Vector((0.0, 0.0, 1.0)) - self.tail = matrix * self.tail - self.head = matrix * self.head + z_vec = Vector((0.0, 0.0, 1.0)) * self.matrix.rotation_part() + self.tail = self.tail * matrix + self.head = self.head * matrix scalar = matrix.median_scale self.head_radius *= scalar self.tail_radius *= scalar - self.align_roll(matrix * z_vec) + self.align_roll(z_vec * matrix) def ord_ind(i1, i2): |