Fix material loading #3126
This commit is contained in:
parent
62f5382d56
commit
6094869e3e
1 changed files with 1 additions and 1 deletions
2
src/external/tinyobj_loader_c.h
vendored
2
src/external/tinyobj_loader_c.h
vendored
|
@ -746,7 +746,7 @@ static int tinyobj_parse_and_index_mtl_file(tinyobj_material_t **materials_out,
|
||||||
(*materials_out) = NULL;
|
(*materials_out) = NULL;
|
||||||
(*num_materials_out) = 0;
|
(*num_materials_out) = 0;
|
||||||
|
|
||||||
fp = fopen(filename, "r");
|
fp = fopen(filename, "rt");
|
||||||
if (!fp) {
|
if (!fp) {
|
||||||
fprintf(stderr, "TINYOBJ: Error reading file '%s': %s (%d)\n", filename, strerror(errno), errno);
|
fprintf(stderr, "TINYOBJ: Error reading file '%s': %s (%d)\n", filename, strerror(errno), errno);
|
||||||
return TINYOBJ_ERROR_FILE_OPERATION;
|
return TINYOBJ_ERROR_FILE_OPERATION;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue