ソースを参照

Corrected issue with multi-mesh obj models

Note that all meshes are loaded as a single one at this moment, loading should be improved!
pull/838/head
Ray 6年前
コミット
5a1a0a3492
1個のファイルの変更3行の追加1行の削除
  1. +3
    -1
      src/models.c

+ 3
- 1
src/models.c ファイルの表示

@ -2769,7 +2769,9 @@ static Model LoadOBJ(const char *fileName)
else TraceLog(LOG_INFO, "[%s] Model data loaded successfully: %i meshes / %i materials", fileName, meshCount, materialCount);
// Init model meshes array
model.meshCount = meshCount;
// TODO: Support multiple meshes... in the meantime, only one mesh is returned
//model.meshCount = meshCount;
model.meshCount = 1;
model.meshes = (Mesh *)RL_MALLOC(model.meshCount*sizeof(Mesh));
// Init model materials array

読み込み中…
キャンセル
保存