diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:04:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-05 10:04:23 +0300 |
commit | 8b52087d837ac035e2645c09ad780c45fccb9d89 (patch) | |
tree | 5982081187260e2544378a24a74a897072030a96 /release/scripts/modules/bpy_types.py | |
parent | dd08305e7506233611315dc6c60013fbac30b53d (diff) |
update for changes in mathutils.
Diffstat (limited to 'release/scripts/modules/bpy_types.py')
-rw-r--r-- | release/scripts/modules/bpy_types.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 61c3f11ccef..1cb30765bf0 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 Vector((1.0, 0.0, 0.0)) * self.matrix.rotation_part() + return Vector((1.0, 0.0, 0.0)) * self.matrix.to_3x3() @property def y_axis(self): """ Vector pointing down the x-axis of the bone. """ - return Vector((0.0, 1.0, 0.0)) * self.matrix.rotation_part() + return Vector((0.0, 1.0, 0.0)) * self.matrix.to_3x3() @property def z_axis(self): """ Vector pointing down the x-axis of the bone. """ - return Vector((0.0, 0.0, 1.0)) * self.matrix.rotation_part() + return Vector((0.0, 0.0, 1.0)) * self.matrix.to_3x3() @property def basename(self): @@ -284,7 +284,7 @@ class EditBone(StructRNA, _GenericBone, metaclass=StructMetaIDProp): Expects a 4x4 or 3x3 matrix. """ from mathutils import Vector - z_vec = Vector((0.0, 0.0, 1.0)) * self.matrix.rotation_part() + z_vec = Vector((0.0, 0.0, 1.0)) * self.matrix.to_3x3() self.tail = self.tail * matrix self.head = self.head * matrix scalar = matrix.median_scale |