From 4a8602ed0f955018ffa1e900ed7a2307daa1f2a2 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 27 Jan 2023 20:45:02 -0500 Subject: [PATCH] Fix embedded textures causing a model not to load --- source/Irrlicht/CGLTFMeshFileLoader.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/Irrlicht/CGLTFMeshFileLoader.cpp b/source/Irrlicht/CGLTFMeshFileLoader.cpp index 61a33798..7734889b 100644 --- a/source/Irrlicht/CGLTFMeshFileLoader.cpp +++ b/source/Irrlicht/CGLTFMeshFileLoader.cpp @@ -81,10 +81,6 @@ static bool tryParseGLTF(io::IReadFile* file, tinygltf::Model& model) auto buf = std::make_unique(file->getSize()); file->read(buf.get(), file->getSize()); - if (err != "" || warn != "") { - return false; - } - return loader.LoadASCIIFromString(&model, &err, &warn, buf.get(), file->getSize(), "", 1); }