浏览代码

Fixed doesn't property load when 1 frame animation.

pull/5561/head
あるる / きのもと 結衣 2 周前
父节点
当前提交
832701b69f
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/rmodels.c

+ 4
- 1
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;

正在加载...
取消
保存