From 970915669f8e07dde8de9700c9c28c1d11ce31c7 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 28 Nov 2023 07:35:48 -0500 Subject: [PATCH] More debugging --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 41f597a8..c7a30cc4 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -255,8 +255,9 @@ std::tuple CB3DJSONMeshFileLoader::readChunkTEXS() { // Convert Windows '\' to Posix '/'. B3DTexture.TextureName.replace('\\','/'); - println(B3DTexture.TextureName.c_str()); + } else { + if (t.contains("name") && !t["name"].is_string()) { return {false, "\"name\" in TEXS block index (" + std::to_string(index) +") is not a string."}; }