From 8b52087d837ac035e2645c09ad780c45fccb9d89 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 5 Feb 2011 07:04:23 +0000 Subject: update for changes in mathutils. --- release/scripts/modules/bpy_types.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/modules/bpy_types.py') 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 -- cgit v1.2.3