diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 62088552..0cdbc540 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -334,6 +334,16 @@ std::tuple CB3DJSONMeshFileLoader::readChunkBRUS() { return {false, "BRUS: Element (" + std::to_string(index) + ") \"fx\" is not an integer."}; } + //* Textures Array. + if (b.contains("textures") && b["textures"].is_array()) { + + + } else { + if (!b.contains("textures")) { + return {false, "BRUS: Element (" + std::to_string(index) + ") is missing \"textures\"."}; + } + return {false, "BRUS: Element (" + std::to_string(index) + ") is not an array."}; + } index++; }