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

Update rmodels.c

resolves segfault with missing bone weights or bone IDs
pull/4635/head
Jett 1 год назад
committed by GitHub
Родитель
Сommit
130fb2a993
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: B5690EEEBB952194
1 измененных файлов: 2 добавлений и 0 удалений
  1. +2
    -0
      src/rmodels.c

+ 2
- 0
src/rmodels.c Просмотреть файл

@ -2286,6 +2286,8 @@ void UpdateModelAnimationBones(Model model, ModelAnimation anim, int frame)
}
}
if ((mesh.boneWeights==NULL) || (mesh.boneIds==NULL)) continue; // skip if missing bone data, causes segfault without on some models
// Update all bones and boneMatrices of first mesh with bones.
for (int boneId = 0; boneId < anim.boneCount; boneId++)
{

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