mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-11 05:58:44 +01:00
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)
This commit is contained in:
@ -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,
|
else TRACELOG(LOG_INFO, "MODEL: [%s] M3D data loaded successfully: %i animations, %i bones, %i skins", fileName,
|
||||||
m3d->numaction, m3d->numbone, m3d->numskin);
|
m3d->numaction, m3d->numbone, m3d->numskin);
|
||||||
|
|
||||||
// No animation or bone+skin?
|
// 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->numskin)
|
if (!m3d->numaction || !m3d->numbone)
|
||||||
{
|
{
|
||||||
m3d_free(m3d);
|
m3d_free(m3d);
|
||||||
UnloadFileData(fileData);
|
UnloadFileData(fileData);
|
||||||
|
|||||||
Reference in New Issue
Block a user