Parcourir la source

Don't require a M3d animation only file to have a mesh. There are valid use cases for animation only files that can be applied to N other meshes.

pull/5475/head
Jeffery Myers il y a 1 mois
Parent
révision
eac9c988d1
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/rmodels.c

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

@ -7045,8 +7045,8 @@ static ModelAnimation *LoadModelAnimationsM3D(const char *fileName, int *animCou
else TRACELOG(LOG_INFO, "MODEL: [%s] M3D data loaded successfully: %i animations, %i bones, %i skins", fileName,
m3d->numaction, m3d->numbone, m3d->numskin);
// No animation or bone+skin?
if (!m3d->numaction || !m3d->numbone || !m3d->numskin)
// No animation or bones, exit out. skins are not required because some people use one animation for N models
if (!m3d->numaction || !m3d->numbone)
{
m3d_free(m3d);
UnloadFileData(fileData);

Chargement…
Annuler
Enregistrer