[rmodels] Return true if no need to interpolate to avoid log flooding (#4118)

This commit is contained in:
VitoTringolo 2024-06-30 09:50:12 +02:00 committed by GitHub
parent c1ea32655a
commit 5b8efd68ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5649,7 +5649,7 @@ static bool GetPoseAtTimeGLTF(cgltf_interpolation_type interpolationType, cgltf_
} }
// Constant animation, no need to interpolate // Constant animation, no need to interpolate
if (FloatEquals(tend, tstart)) return false; if (FloatEquals(tend, tstart)) return true;
float duration = fmaxf((tend - tstart), EPSILON); float duration = fmaxf((tend - tstart), EPSILON);
float t = (time - tstart)/duration; float t = (time - tstart)/duration;