瀏覽代碼

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)

pull/5481/head
Jeffery Myers 3 週之前
committed by GitHub
父節點
當前提交
c78ac65786
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: B5690EEEBB952194
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rmodels.c

+ 2
- 2
src/rmodels.c 查看文件

@ -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);

Loading…
取消
儲存