From 5b25a4eb64d3f8bbea2cf0c5026d2e2831264d32 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 28 Nov 2023 06:14:29 -0500 Subject: [PATCH] Very fancy --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index ec2a62d9..ac908350 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -190,14 +190,19 @@ std::tuple CB3DJSONMeshFileLoader::readChunkTEXS() { Textures.push_back(SB3dTexture()); SB3dTexture& B3DTexture = Textures.getLast(); - // This should probably be it's own function. - - - - + // This part should probably be it's own function. + //todo: look into making this it's own function. + } + } else { + // it is malformed. + //todo: return + return {false, "Malformed TEXS block. \"textures\" is not an array."} ; } + + // Everything succeeds, yay! + return {true, nullptr}; }