From 01dd77b498f1e27dc856ad93e9165a599e4b6538 Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Mon, 25 Jul 2011 02:30:51 +0000 Subject: [PATCH] use reverse vector multiplication order --- rigify/rigs/biped/arm/deform.py | 4 ++-- 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 0e6713591..265c944de 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 d0f98e4a3..3a6491394 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 -- GitLab