From 5b8efd68ba2d8e2c707d5811a5ce7185b2bead76 Mon Sep 17 00:00:00 2001 From: VitoTringolo Date: Sun, 30 Jun 2024 09:50:12 +0200 Subject: [PATCH] [rmodels] Return true if no need to interpolate to avoid log flooding (#4118) --- src/rmodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index cc6ac823c796..5f061e2dd96d 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -5649,7 +5649,7 @@ static bool GetPoseAtTimeGLTF(cgltf_interpolation_type interpolationType, cgltf_ } // 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 t = (time - tstart)/duration;