Fixed doesn't property load when 1 frame animation.

This commit is contained in:
あるる / きのもと 結衣 2026-02-15 23:45:08 +09:00
parent 059ebaa6ad
commit 832701b69f

View File

@ -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;