[Bf-blender-cvs] [0055162] master: Tweak slerp assert to be less picky
Campbell Barton
noreply at git.blender.org
Mon Mar 31 05:57:57 CEST 2014
Commit: 0055162b759ef6aa52aa1fc2ec14b646b310b78f
Author: Campbell Barton
Date: Mon Mar 31 14:55:12 2014 +1100
https://developer.blender.org/rB0055162b759ef6aa52aa1fc2ec14b646b310b78f
Tweak slerp assert to be less picky
===================================================================
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 64016de..9fc5909 100644
--- a/source/blender/blenlib/intern/math_rotation.c
+++ b/source/blender/blenlib/intern/math_rotation.c
@@ -635,7 +635,7 @@ void interp_dot_slerp(const float t, const float cosom, float r_w[2])
{
const float eps = 0.0001f;
- BLI_assert(IN_RANGE_INCL(cosom, -1.0f, 1.0f));
+ BLI_assert(IN_RANGE_INCL(cosom, -1.0001f, 1.0001f));
/* within [-1..1] range, avoid aligned axis */
if (LIKELY(fabsf(cosom) < (1.0f - eps))) {
More information about the Bf-blender-cvs
mailing list