diff options
| author | Michael Vetter <jubalh@iodoru.org> | 2019-10-03 21:05:21 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-10-03 21:05:21 +0200 |
| commit | 596338b26a1196e98d1b842a3bd97423ceb5d595 (patch) | |
| tree | 1774ad25abcaf3f88b8879c08d39ab826ec46622 | |
| parent | eb772bc1e0f1042338037eb8a906ea4464001ab0 (diff) | |
| download | raylib-596338b26a1196e98d1b842a3bd97423ceb5d595.tar.gz raylib-596338b26a1196e98d1b842a3bd97423ceb5d595.zip | |
Check whether parsing mtl file was succesful (#982)
| -rw-r--r-- | src/models.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c index 8a4fe1d2..2462190d 100644 --- a/src/models.c +++ b/src/models.c @@ -809,6 +809,9 @@ Material *LoadMaterials(const char *fileName, int *materialCount) tinyobj_material_t *mats; int result = tinyobj_parse_mtl_file(&mats, &count, fileName); + if (result != TINYOBJ_SUCCESS) { + TraceLog(LOG_WARNING, "[%s] Could not parse Materials file", fileName); + } // TODO: Process materials to return |
