[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1542] trunk/py/scripts/addons/ space_view3d_copy_attributes.py: fix for recent mathutils updates.

Campbell Barton ideasman42 at gmail.com
Sun Feb 6 08:05:24 CET 2011


Revision: 1542
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=1542
Author:   campbellbarton
Date:     2011-02-06 07:05:23 +0000 (Sun, 06 Feb 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/py/scripts/addons/space_view3d_copy_attributes.py

Modified: trunk/py/scripts/addons/space_view3d_copy_attributes.py
===================================================================
--- trunk/py/scripts/addons/space_view3d_copy_attributes.py	2011-02-06 00:11:38 UTC (rev 1541)
+++ trunk/py/scripts/addons/space_view3d_copy_attributes.py	2011-02-06 07:05:23 UTC (rev 1542)
@@ -107,8 +107,13 @@
            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:



More information about the Bf-extensions-cvs mailing list