mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-21 13:20:27 +01:00
Invert this to maintain sanity
This commit is contained in:
parent
b64ac8c595
commit
57f0f84c9f
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user