Browse Source

Avoid fatal errors on OBJ model loading

pull/4886/merge
Ray 1 day ago
parent
commit
8343aed4f6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rmodels.c

+ 2
- 2
src/rmodels.c View File

@ -4292,7 +4292,7 @@ static Model LoadOBJ(const char *fileName)
if (fileText == NULL) if (fileText == NULL)
{ {
TRACELOG(LOG_ERROR, "MODEL: [%s] Unable to read obj file", fileName);
TRACELOG(LOG_WARNING, "MODEL: [%s] Unable to read obj file", fileName);
return model; return model;
} }
@ -4308,7 +4308,7 @@ static Model LoadOBJ(const char *fileName)
if (ret != TINYOBJ_SUCCESS) if (ret != TINYOBJ_SUCCESS)
{ {
TRACELOG(LOG_ERROR, "MODEL: Unable to read obj data %s", fileName);
TRACELOG(LOG_WARNING, "MODEL: Unable to read obj data %s", fileName);
return model; return model;
} }

Loading…
Cancel
Save