[Bf-blender-cvs] [d6a53bb] master: Minor change to recent commit (avoid transpose)

Campbell Barton noreply at git.blender.org
Sat Apr 19 11:49:06 CEST 2014


Commit: d6a53bb38f10b8881ab92dcbf8add2d62622cd9f
Author: Campbell Barton
Date:   Sat Apr 19 19:48:07 2014 +1000
https://developer.blender.org/rBd6a53bb38f10b8881ab92dcbf8add2d62622cd9f

Minor change to recent commit (avoid transpose)

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

M	source/blender/blenlib/intern/math_rotation.c

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

diff --git a/source/blender/blenlib/intern/math_rotation.c b/source/blender/blenlib/intern/math_rotation.c
index 00fdf44..b356904 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -429,9 +429,8 @@ axis_calc:
 		cross_v3_v3v3(m1[2], m1[1], m1[0]);
 		cross_v3_v3v3(m2[2], m2[1], m2[0]);
 
-		transpose_m3(m2);
-		mul_m3_m3m3(m, m1, m2);
-		transpose_m3(m);
+		transpose_m3(m1);
+		mul_m3_m3m3(m, m2, m1);
 
 		BLI_ASSERT_UNIT_M3(m);
 	}




More information about the Bf-blender-cvs mailing list