[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39060] branches/soc-2011-pepper/release/ scripts/modules/retarget.py: Updated Vector/ Matrix multiplication to new order as required by mathutils

Benjy Cook benjycook at hotmail.com
Fri Aug 5 10:41:17 CEST 2011


Revision: 39060
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39060
Author:   benjycook
Date:     2011-08-05 08:41:16 +0000 (Fri, 05 Aug 2011)
Log Message:
-----------
Updated Vector/Matrix multiplication to new order as required by mathutils

Modified Paths:
--------------
    branches/soc-2011-pepper/release/scripts/modules/retarget.py

Modified: branches/soc-2011-pepper/release/scripts/modules/retarget.py
===================================================================
--- branches/soc-2011-pepper/release/scripts/modules/retarget.py	2011-08-05 08:40:06 UTC (rev 39059)
+++ branches/soc-2011-pepper/release/scripts/modules/retarget.py	2011-08-05 08:41:16 UTC (rev 39060)
@@ -285,7 +285,7 @@
             scene.frame_set(t)
             #calculate the new position, by dividing by the found ratio between performer and enduser
             newTranslation = (tailLoc(perf_bones[perfRoot]) / avg)
-            stride_bone.location = (newTranslation - initialPos) * enduser_obj_mat
+            stride_bone.location = enduser_obj_mat * (newTranslation - initialPos)
             stride_bone.keyframe_insert("location")
     return stride_bone
 




More information about the Bf-blender-cvs mailing list