diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 06:30:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 06:30:51 +0400 |
commit | 01dd77b498f1e27dc856ad93e9165a599e4b6538 (patch) | |
tree | cfefb687abccffca847c559d9a4c2f6f00e649f0 /rigify | |
parent | abfc9fa50338cc592462a37a2205f27c880246f8 (diff) |
use reverse vector multiplication order
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/rigs/biped/arm/deform.py | 4 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/deform.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rigify/rigs/biped/arm/deform.py b/rigify/rigs/biped/arm/deform.py index 0e671359..265c944d 100644 --- a/rigify/rigs/biped/arm/deform.py +++ b/rigify/rigs/biped/arm/deform.py @@ -48,7 +48,7 @@ def align_roll(obj, bone1, bone2): 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 @@ def align_roll(obj, bone1, bone2): 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 diff --git a/rigify/rigs/biped/leg/deform.py b/rigify/rigs/biped/leg/deform.py index d0f98e4a..3a649139 100644 --- a/rigify/rigs/biped/leg/deform.py +++ b/rigify/rigs/biped/leg/deform.py @@ -48,7 +48,7 @@ def align_roll(obj, bone1, bone2): 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 @@ def align_roll(obj, bone1, bone2): 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 |