Browse Source

Merge branch 'master' into master

emvivre 2 years ago
parent
commit
0bef3a2e0b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/assimp/quaternion.inl

+ 2 - 1
include/assimp/quaternion.inl

@@ -237,7 +237,8 @@ inline void aiQuaterniont<TReal>::Interpolate( aiQuaterniont& pOut, const aiQuat
 
     // Calculate coefficients
     TReal sclp, sclq;
-    if( (static_cast<TReal>(1.0) - cosom) > static_cast<TReal>(0.0001)) // 0.0001 -> some epsillon
+    
+    if ((static_cast<TReal>(1.0) - cosom) > ai_epsilon) // 0.0001 -> some epsillon
     {
         // Standard case (slerp)
         TReal omega, sinom;