From 89ae5f0068e8b20566ab817c110a0ea55e617cf2 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 28 Nov 2023 05:11:40 -0500 Subject: [PATCH] Add information --- source/Irrlicht/CB3DJSONMeshFileLoader.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index a8188565..1e7a3935 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -185,6 +185,9 @@ bool load(json data) { return true; } +/** + * Automatically cleans and returns the nullptr so it can be inlined or chained. +*/ CSkinnedMesh* CB3DJSONMeshFileLoader::cleanUp(std::string failure) { os::Printer::log(failure.c_str(), ELL_WARNING); AnimatedMesh->drop(); @@ -236,6 +239,8 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) { return(this->cleanUp("B3D JSON severe error! File size is 0!")); } + //? Now JSONDataContainer exists on this object. + //? So we can commence loading it. // Now check some real basic elements of the JSON file. if (!data.contains("format") || !data["format"].is_string() || data["format"] != "BB3D") {