From 57f0f84c9f3957cc589684434895a9b20dea41e1 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 28 Nov 2023 05:32:21 -0500 Subject: [PATCH] Invert this to maintain sanity --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index e0bde56f..5f36e978 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -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; } /**