Commit: fcdcb8c81853d5cf82c925eed6f34c717a74b8fe
Author: Lukas Tönne
Date:   Fri Sep 12 12:37:49 2014 +0200
Branches: hair_immediate_fixes
https://developer.blender.org/rBfcdcb8c81853d5cf82c925eed6f34c717a74b8fe

Correction for inverse constraint matrix rotation.

===================================================================

M       source/blender/blenkernel/intern/implicit.c

===================================================================

diff --git a/source/blender/blenkernel/intern/implicit.c 
b/source/blender/blenkernel/intern/implicit.c
index f79e6f2..d284a8e 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -2351,8 +2351,8 @@ static void setup_constraint_matrix(ClothModifierData 
*clmd, ColliderContacts *c
                float t[3][3];
                copy_m3_m3(t, roots[v].rot);
                transpose_m3(t);
-               mul_m3_m3m3(S[v].m, S[v].m, t);
-               mul_m3_m3m3(S[v].m, roots[v].rot, S[v].m);
+               mul_m3_m3m3(S[v].m, S[v].m, roots[v].rot);
+               mul_m3_m3m3(S[v].m, t, S[v].m);
                
                vel_world_to_root(z[v], X[v], z[v], &roots[v]);
        }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to