[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2172] trunk/py/scripts/addons/rigify/ rigs/biped: use reverse vector multiplication order

Campbell Barton ideasman42 at gmail.com
Mon Jul 25 04:30:51 CEST 2011


Revision: 2172
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2172
Author:   campbellbarton
Date:     2011-07-25 02:30:51 +0000 (Mon, 25 Jul 2011)
Log Message:
-----------
use reverse vector multiplication order

Modified Paths:
--------------
    trunk/py/scripts/addons/rigify/rigs/biped/arm/deform.py
    trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py

Modified: trunk/py/scripts/addons/rigify/rigs/biped/arm/deform.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/arm/deform.py	2011-07-25 02:26:06 UTC (rev 2171)
+++ trunk/py/scripts/addons/rigify/rigs/biped/arm/deform.py	2011-07-25 02:30:51 UTC (rev 2172)
@@ -48,7 +48,7 @@
     rot_mat = Matrix.Rotation(angle, 3, axis)
 
     # Roll factor
-    x3 = x1 * rot_mat
+    x3 = rot_mat * x1
     dot = x2 * x3
     if dot > 1.0:
         dot = 1.0
@@ -60,7 +60,7 @@
     bone1_e.roll = roll
 
     # Check if we rolled in the right direction
-    x3 = bone1_e.x_axis * rot_mat
+    x3 = rot_mat * bone1_e.x_axis
     check = x2 * x3
 
     # If not, reverse

Modified: trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py
===================================================================
--- trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py	2011-07-25 02:26:06 UTC (rev 2171)
+++ trunk/py/scripts/addons/rigify/rigs/biped/leg/deform.py	2011-07-25 02:30:51 UTC (rev 2172)
@@ -48,7 +48,7 @@
     rot_mat = Matrix.Rotation(angle, 3, axis)
 
     # Roll factor
-    x3 = x1 * rot_mat
+    x3 = rot_mat * x1
     dot = x2 * x3
     if dot > 1.0:
         dot = 1.0
@@ -60,7 +60,7 @@
     bone1_e.roll = roll
 
     # Check if we rolled in the right direction
-    x3 = bone1_e.x_axis * rot_mat
+    x3 = rot_mat * bone1_e.x_axis
     check = x2 * x3
 
     # If not, reverse



More information about the Bf-extensions-cvs mailing list