mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 02:08:14 +00:00
Avoid fatal errors on OBJ model loading
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user