mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-21 13:20:27 +01:00
Fix embedded textures causing a model not to load
This commit is contained in:
parent
08d226cdb5
commit
4a8602ed0f
@ -81,10 +81,6 @@ static bool tryParseGLTF(io::IReadFile* file, tinygltf::Model& model)
|
||||
auto buf = std::make_unique<char[]>(file->getSize());
|
||||
file->read(buf.get(), file->getSize());
|
||||
|
||||
if (err != "" || warn != "") {
|
||||
return false;
|
||||
}
|
||||
|
||||
return loader.LoadASCIIFromString(&model, &err, &warn, buf.get(), file->getSize(), "", 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user