Skip to content

Commit c78ac65

Browse files
authored
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. (#5475)
1 parent 3678c2d commit c78ac65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rmodels.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7045,8 +7045,8 @@ static ModelAnimation *LoadModelAnimationsM3D(const char *fileName, int *animCou
70457045
else TRACELOG(LOG_INFO, "MODEL: [%s] M3D data loaded successfully: %i animations, %i bones, %i skins", fileName,
70467046
m3d->numaction, m3d->numbone, m3d->numskin);
70477047

7048-
// No animation or bone+skin?
7049-
if (!m3d->numaction || !m3d->numbone || !m3d->numskin)
7048+
// No animation or bones, exit out. skins are not required because some people use one animation for N models
7049+
if (!m3d->numaction || !m3d->numbone)
70507050
{
70517051
m3d_free(m3d);
70527052
UnloadFileData(fileData);

0 commit comments

Comments
 (0)