[Bf-blender-cvs] [a025ff4] master: Math: Code cleanup

Sergej Reich noreply at git.blender.org
Fri Jan 17 20:48:58 CET 2014


Commit: a025ff407ec9c300cc2039bbb7f4b13cb466ac8b
Author: Sergej Reich
Date:   Fri Jan 17 20:44:34 2014 +0100
https://developer.blender.org/rBa025ff407ec9c300cc2039bbb7f4b13cb466ac8b

Math: Code cleanup

Remove stray #undef directives.

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

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 536b4d7..6559c37 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -1048,7 +1048,6 @@ void rotate_eul(float beul[3], const char axis, const float ang)
 	mul_m3_m3m3(totmat, mat2, mat1);
 
 	mat3_to_eul(beul, totmat);
-
 }
 
 /* order independent! */
@@ -1088,9 +1087,6 @@ void compatible_eul(float eul[3], const float oldrot[3])
 		if (deul[2] > 0.0f) eul[2] -= pi_x2;
 		else                eul[2] += pi_x2;
 	}
-
-#undef PI_THRESH
-#undef PI_2F
 }
 
 /* uses 2 methods to retrieve eulers, and picks the closest */
@@ -1116,7 +1112,6 @@ void mat3_to_compatible_eul(float eul[3], const float oldrot[3], float mat[3][3]
 	else {
 		copy_v3_v3(eul, eul1);
 	}
-
 }
 
 /************************** Arbitrary Order Eulers ***************************/




More information about the Bf-blender-cvs mailing list