Assert vec_roll_to_mat3_normalized's gets a normalized vector

This commit is contained in:
Campbell Barton 2015-09-02 00:43:53 +10:00
parent 282811f8b8
commit 2fcc38ad54
1 changed files with 2 additions and 0 deletions

View File

@ -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,