mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-29 02:09:17 -05:00
Check whether GLTF was loaded correctly (#981)
This commit is contained in:
@ -3406,6 +3406,9 @@ static Model LoadGLTF(const char *fileName)
|
|||||||
|
|
||||||
// Read data buffers
|
// Read data buffers
|
||||||
result = cgltf_load_buffers(&options, data, fileName);
|
result = cgltf_load_buffers(&options, data, fileName);
|
||||||
|
if (result != cgltf_result_success) {
|
||||||
|
TraceLog(LOG_INFO, "[%s][%s] Error loading mesh/material buffers", fileName, (data->file_type == 2)? "glb" : "gltf");
|
||||||
|
}
|
||||||
|
|
||||||
int primitivesCount = 0;
|
int primitivesCount = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user