Skip to content

Commit

Permalink
Merge pull request #4756 from assimp/kimkulling/fix_use_correct_eps_i…
Browse files Browse the repository at this point in the history
…n_interpolation_issue-4751

FIX: Use correct epsilon
  • Loading branch information
kimkulling committed Oct 15, 2022
2 parents e2f54d3 + 4ac3b1f commit 565539b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/assimp/quaternion.inl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 565539b

Please sign in to comment.