From ae3c9b0d07146117127b0a0299d15a8377df6aa0 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Sun, 6 Feb 2011 07:05:23 +0000 Subject: [PATCH] fix for recent mathutils updates. note that the logic here is confusing and Im not sure why the original bone matrix us used at all. --- space_view3d_copy_attributes.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 2b1ccebe7..a3b39144c 100644 --- a/space_view3d_copy_attributes.py +++ b/space_view3d_copy_attributes.py @@ -107,8 +107,13 @@ def getmat(bone, active, context, ignoreparent): context.active_object.pose.bones[data_bone.parent.name].matrix) parentbonemat = Matrix(data_bone.parent.matrix_local) else: - parentposemat = bonemat_local.copy().identity() - parentbonemat = bonemat_local.copy().identity() + parentposemat = bonemat_local.copy() + parentbonemat = bonemat_local.copy() + + # FIXME! why copy from the parent if setting identity ?, Campbell + parentposemat.identity() + parentbonemat.identity() + if parentbonemat == parentposemat or ignoreparent: newmat = bonemat_local.invert() * otherloc else: -- GitLab