[Bf-blender-cvs] [2fcc38a] master: Assert vec_roll_to_mat3_normalized's gets a normalized vector

Campbell Barton noreply at git.blender.org
Tue Sep 1 17:44:33 CEST 2015


Commit: 2fcc38ad5491d19586b75d5fb59a195e5fad94c9
Author: Campbell Barton
Date:   Wed Sep 2 00:43:53 2015 +1000
Branches: master
https://developer.blender.org/rB2fcc38ad5491d19586b75d5fb59a195e5fad94c9

Assert vec_roll_to_mat3_normalized's gets a normalized vector

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

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

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

diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c
index 3643aa2..232d0e2 100644
--- a/source/blender/blenkernel/intern/armature.c
+++ b/source/blender/blenkernel/intern/armature.c
@@ -1506,6 +1506,8 @@ void vec_roll_to_mat3_normalized(const float nor[3], const float roll, float mat
 	float theta;
 	float rMatrix[3][3], bMatrix[3][3];
 
+	BLI_ASSERT_UNIT_V3(nor);
+
 	theta = 1.0f + nor[1];
 
 	/* With old algo, 1.0e-13f caused T23954 and T31333, 1.0e-6f caused T27675 and T30438,




More information about the Bf-blender-cvs mailing list