Now we can build upon it

This commit is contained in:
jordan4ibanez 2023-11-28 06:42:47 -05:00
parent d7b5caa2b2
commit 52a284c650

View File

@ -239,9 +239,19 @@ std::tuple<bool, std::string> CB3DJSONMeshFileLoader::readChunkTEXS() {
//todo: look into making this it's own function.
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 {
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 {