Do not fail to load glTF because of warnings

This commit is contained in:
JosiahWI 2023-05-13 12:20:15 -05:00
parent 280eb5b27f
commit a67232f2d0
No known key found for this signature in database
GPG Key ID: C7BB8573A4ABC4B9

View File

@ -81,7 +81,7 @@ static bool tryParseGLTF(io::IReadFile* file, tinygltf::Model& model)
auto buf = std::make_unique<char[]>(file->getSize()); auto buf = std::make_unique<char[]>(file->getSize());
file->read(buf.get(), file->getSize()); file->read(buf.get(), file->getSize());
if (err != "" || warn != "") { if (err != "") {
return false; return false;
} }