From 08391ba596de0dc2c990bbbfbcdda1b63035aec0 Mon Sep 17 00:00:00 2001 From: VitoTringolo Date: Sun, 30 Jun 2024 06:57:05 +0200 Subject: [PATCH] [rmodels] Return true if no need to interpolate to avoid log flooding --- src/rmodels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index cc6ac823c..5f061e2dd 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;