Skip to content

Commit 6564cea

Browse files
authored
Fixed doesn't property load when 1 frame animation. (#5561)
1 parent 059ebaa commit 6564cea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rmodels.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6244,7 +6244,10 @@ static bool GetPoseAtTimeGLTF(cgltf_interpolation_type interpolationType, cgltf_
62446244
}
62456245

62466246
// Constant animation, no need to interpolate
6247-
if (FloatEquals(tend, tstart)) return true;
6247+
if (FloatEquals(tend, tstart))
6248+
{
6249+
interpolationType = cgltf_interpolation_type_step;
6250+
}
62486251

62496252
float duration = fmaxf((tend - tstart), EPSILON);
62506253
float t = (time - tstart)/duration;

0 commit comments

Comments
 (0)