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
path: root/rigify
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-25 06:30:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-25 06:30:51 +0400
commit01dd77b498f1e27dc856ad93e9165a599e4b6538 (patch)
treecfefb687abccffca847c559d9a4c2f6f00e649f0 /rigify
parentabfc9fa50338cc592462a37a2205f27c880246f8 (diff)
use reverse vector multiplication order
Diffstat (limited to 'rigify')
-rw-r--r--rigify/rigs/biped/arm/deform.py4
-rw-r--r--rigify/rigs/biped/leg/deform.py4
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