Ver a proveniência
Update rmodels.c
resolves segfault with missing bone weights or bone IDs
pull/4635/head
Jett
há 1 ano
committed by
GitHub
ascendente
cometimento
130fb2a993
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com
2 adições e
0 eliminações
-
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++) |
|
|
|
{ |
|
|
|
|