ソースを参照

Update rmodels.c

resolves segfault with missing bone weights or bone IDs
pull/4635/head
Jett 1年前
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++)
{

読み込み中…
キャンセル
保存