mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 05:40:26 +01:00
Now we can build upon it
This commit is contained in:
parent
d7b5caa2b2
commit
52a284c650
@ -239,9 +239,19 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkTEXS() {
|
|||||||
//todo: look into making this it's own function.
|
//todo: look into making this it's own function.
|
||||||
|
|
||||||
if (t.contains("pos") && t["pos"].is_array()) {
|
if (t.contains("pos") && t["pos"].is_array()) {
|
||||||
|
|
||||||
|
irr::core::vector2df pos {0,0};
|
||||||
|
|
||||||
|
|
||||||
|
auto posSuccess = grabVec2f(t, "pos", pos);
|
||||||
|
if (!std::get<0>(posSuccess)) {
|
||||||
|
return {false, "TEXS: " + std::get<1>(posSuccess)};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return {false, "Malformed pos in TEXS block. Must be an array with 2 numbers."};
|
return {false, "Malformed \"pos\" in TEXS block. Must be an array with 2 numbers."};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user