summaryrefslogtreecommitdiffhomepage
path: root/src/rmodels.c
diff options
context:
space:
mode:
authorVitoTringolo <[email protected]>2024-06-30 09:50:12 +0200
committerGitHub <[email protected]>2024-06-30 09:50:12 +0200
commit5b8efd68ba2d8e2c707d5811a5ce7185b2bead76 (patch)
tree91ca7d795df1cc8a66f5dec1751ec8f63dfda94e /src/rmodels.c
parentc1ea32655aad97402ea3b215ab7b414d0809bb8d (diff)
downloadraylib-5b8efd68ba2d8e2c707d5811a5ce7185b2bead76.tar.gz
raylib-5b8efd68ba2d8e2c707d5811a5ce7185b2bead76.zip
[rmodels] Return true if no need to interpolate to avoid log flooding (#4118)
Diffstat (limited to 'src/rmodels.c')
-rw-r--r--src/rmodels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rmodels.c b/src/rmodels.c
index cc6ac823..5f061e2d 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;