Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-06 10:05:23 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-06 10:05:23 +0300
commitae3c9b0d07146117127b0a0299d15a8377df6aa0 (patch)
tree4aa31587faf6c2a5792ec475db8e365faec89b09 /space_view3d_copy_attributes.py
parente47b7700eb4ce9ab12b557c6aedadacc06e97de8 (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.py9
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: