diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-01 17:43:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-01 17:43:53 +0300 |
commit | 2fcc38ad5491d19586b75d5fb59a195e5fad94c9 (patch) | |
tree | 3c9cbcb7f7d2223dab9441ac0862245a27ac8062 /source/blender/blenkernel/intern/armature.c | |
parent | 282811f8b83dac4a38a9e66c3047c15cfd26b8bd (diff) |
Assert vec_roll_to_mat3_normalized's gets a normalized vector
Diffstat (limited to 'source/blender/blenkernel/intern/armature.c')
-rw-r--r-- | source/blender/blenkernel/intern/armature.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/armature.c b/source/blender/blenkernel/intern/armature.c index 3643aa23998..232d0e21490 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, |