diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-06 10:05:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-06 10:05:23 +0300 |
commit | ae3c9b0d07146117127b0a0299d15a8377df6aa0 (patch) | |
tree | 4aa31587faf6c2a5792ec475db8e365faec89b09 /space_view3d_copy_attributes.py | |
parent | e47b7700eb4ce9ab12b557c6aedadacc06e97de8 (diff) |
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.
Diffstat (limited to 'space_view3d_copy_attributes.py')
-rw-r--r-- | space_view3d_copy_attributes.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/space_view3d_copy_attributes.py b/space_view3d_copy_attributes.py index 2b1ccebe..a3b39144 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: |