From 6564cea6a31109e9f2fe1a6349c8dd12840098cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yui=20Kinomoto=20/=20=E3=81=8D=E3=81=AE=E3=82=82=E3=81=A8?= =?UTF-8?q?=20=E7=B5=90=E8=A1=A3?= Date: Mon, 16 Feb 2026 04:15:25 +0900 Subject: [PATCH] Fixed doesn't property load when 1 frame animation. (#5561) --- src/rmodels.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rmodels.c b/src/rmodels.c index 755d0437d..eadc16f07 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -6244,7 +6244,10 @@ static bool GetPoseAtTimeGLTF(cgltf_interpolation_type interpolationType, cgltf_ } // Constant animation, no need to interpolate - if (FloatEquals(tend, tstart)) return true; + if (FloatEquals(tend, tstart)) + { + interpolationType = cgltf_interpolation_type_step; + } float duration = fmaxf((tend - tstart), EPSILON); float t = (time - tstart)/duration;