Browse Source

[rmodels] Return true if no need to interpolate to avoid log flooding (#4118)

pull/4120/head
VitoTringolo 3 months ago
committed by GitHub
parent
commit
5b8efd68ba
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
src/rmodels.c View File

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

Loading…
Cancel
Save