浏览代码

Update rmodels.c

resolves segfault with missing bone weights or bone IDs
pull/4635/head
Jett 3 个月前
committed by GitHub
父节点
当前提交
130fb2a993
找不到此签名对应的密钥 GPG 密钥 ID: 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++)
{

正在加载...
取消
保存