mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-31 11:19:18 -05:00
Check whether parsing mtl file was succesful (#982)
This commit is contained in:
@ -809,6 +809,9 @@ Material *LoadMaterials(const char *fileName, int *materialCount)
|
|||||||
tinyobj_material_t *mats;
|
tinyobj_material_t *mats;
|
||||||
|
|
||||||
int result = tinyobj_parse_mtl_file(&mats, &count, fileName);
|
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
|
// TODO: Process materials to return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user