Commit: 2b06b899b05f5501afad05d19ea2aa41b3f68095
Author: Lukas Tönne
Date: Fri Sep 12 12:37:49 2014 +0200
Branches: master
https://developer.blender.org/rB2b06b899b05f5501afad05d19ea2aa41b3f68095
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 98f5713..68aaab0 100644
--- a/source/blender/blenkernel/intern/implicit.c
+++ b/source/blender/blenkernel/intern/implicit.c
@@ -2157,8 +2157,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