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

@ -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 {