Просмотр исходного кода

Fixed doesn't property load when 1 frame animation. (#5561)

pull/5565/head
Yui Kinomoto / きのもと 結衣 6 дней назад
committed by GitHub
Родитель
Сommit
6564cea6a3
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
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;

Загрузка…
Отмена
Сохранить