mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-04 17:20:25 +02:00
Begin textures in BRUS
This commit is contained in:
@ -334,6 +334,16 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkBRUS() {
|
|||||||
return {false, "BRUS: Element (" + std::to_string(index) + ") \"fx\" is not an integer."};
|
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++;
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user