Begin textures in BRUS

This commit is contained in:
jordan4ibanez 2023-11-28 08:57:43 -05:00
parent 30e46b5ead
commit 206df1f545

View File

@ -334,6 +334,16 @@ std::tuple<bool, std::string> 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++;
}