Skip to content

Commit

Permalink
[rmodels] Return true if no need to interpolate to avoid log flooding
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoTringolo authored Jun 30, 2024
1 parent c1ea326 commit 08391ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 08391ba

Please sign in to comment.