diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-06-15 20:59:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-06-15 21:16:27 +0300 |
commit | 3f7ea7489ee172be54f320b948167f9ca61a4eb3 (patch) | |
tree | 9446556d03be52741360297caaea1d909fb928f4 /source/blender/blenlib/intern | |
parent | bf57c91ead6e8cab92eaaedf551afbd73f3715ed (diff) |
Cleanup: quiet assert for zero-length axis
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/math_geom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index 82062e80ae8..ad48711b8eb 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -2337,7 +2337,7 @@ void axis_dominant_v3_to_m3(float r_mat[3][3], const float normal[3]) transpose_m3(r_mat); BLI_assert(!is_negative_m3(r_mat)); - BLI_assert(fabsf(dot_m3_v3_row_z(r_mat, normal) - 1.0f) < BLI_ASSERT_UNIT_EPSILON); + BLI_assert((fabsf(dot_m3_v3_row_z(r_mat, normal) - 1.0f) < BLI_ASSERT_UNIT_EPSILON) || is_zero_v3(normal)); } /****************************** Interpolation ********************************/ |