From 4ac3b1fef59b383469cf777b5fb9f711877e530e Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 15 Oct 2022 16:11:02 +0200 Subject: [PATCH] FIX: Use correct epsilon --- include/assimp/quaternion.inl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/assimp/quaternion.inl b/include/assimp/quaternion.inl index 960e91ab2..1b93be9ed 100644 --- a/include/assimp/quaternion.inl +++ b/include/assimp/quaternion.inl @@ -237,7 +237,8 @@ inline void aiQuaterniont::Interpolate( aiQuaterniont& pOut, const aiQuat // Calculate coefficients TReal sclp, sclq; - if( (static_cast(1.0) - cosom) > static_cast(0.0001)) // 0.0001 -> some epsillon + + if ((static_cast(1.0) - cosom) > ai_epsilon) // 0.0001 -> some epsillon { // Standard case (slerp) TReal omega, sinom;