mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 23:10:26 +01:00
Now we can build upon it
This commit is contained in:
parent
d7b5caa2b2
commit
52a284c650
|
@ -240,8 +240,18 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkTEXS() {
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user