mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
[rmodels] Return true if no need to interpolate to avoid log flooding (#4118)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user