Invert this to maintain sanity

This commit is contained in:
jordan4ibanez 2023-11-28 05:32:21 -05:00
parent b64ac8c595
commit 57f0f84c9f
1 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ bool grabQuaternionf(json data, std::string key, irr::core::quaternion& refQuat)
}
// Returns if errored.
// Returns success.
bool parseNode(json data, SMeshBuffer* meshBuffer) {
auto position = irr::core::vector3df{0,0,0};
@ -143,18 +143,18 @@ bool parseNode(json data, SMeshBuffer* meshBuffer) {
auto rotation = irr::core::quaternion{0,0,0,1};
if (grabVec3f(data, "position", position)) {
return true;
return false;
}
if (grabVec3f(data, "scale", scale)) {
return true;
return false;
}
if (grabQuaternionf(data, "rotation", rotation)) {
return true;
return false;
}
return false;
return true;
}
/**