Parcourir la source

correct place.

pull/4635/head
Jett il y a 3 mois
Parent
révision
b06ec34214
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      src/rmodels.c

+ 2
- 1
src/rmodels.c Voir le fichier

@ -2286,7 +2286,6 @@ 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++)
@ -2352,6 +2351,8 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame)
bool updated = false; // Flag to check when anim vertex information is updated
const int vValues = mesh.vertexCount*3;
if ((mesh.boneWeights==NULL) || (mesh.boneIds==NULL)) continue; // skip if missing bone data, causes segfault without on some models
for (int vCounter = 0; vCounter < vValues; vCounter += 3)
{
mesh.animVertices[vCounter] = 0;

Chargement…
Annuler
Enregistrer