mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 13:50:25 +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());
|
auto buf = std::make_unique<char[]>(file->getSize());
|
||||||
file->read(buf.get(), file->getSize());
|
file->read(buf.get(), file->getSize());
|
||||||
|
|
||||||
if (err != "" || warn != "") {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return loader.LoadASCIIFromString(&model, &err, &warn, buf.get(), file->getSize(), "", 1);
|
return loader.LoadASCIIFromString(&model, &err, &warn, buf.get(), file->getSize(), "", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user