[Bf-blender-cvs] [1b3da92] temp_merge_gooseberry_hair: Correction for inverse constraint matrix rotation.

Lukas Tönne noreply at git.blender.org
Mon Jan 19 20:48:50 CET 2015


Commit: 1b3da9277c943a1d17408bf939cb990b6eb024b9
Author: Lukas Tönne
Date:   Fri Sep 12 12:37:49 2014 +0200
Branches: temp_merge_gooseberry_hair
https://developer.blender.org/rB1b3da9277c943a1d17408bf939cb990b6eb024b9

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]);
 	}




More information about the Bf-blender-cvs mailing list