diff --git a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp index 5f36e978..8a2418b1 100644 --- a/source/Irrlicht/CB3DJSONMeshFileLoader.cpp +++ b/source/Irrlicht/CB3DJSONMeshFileLoader.cpp @@ -260,9 +260,12 @@ IAnimatedMesh* CB3DJSONMeshFileLoader::createMesh(io::IReadFile* file) { if (!std::get<0>(loadResult)) { // Print the reason, and return a nullptr. return(this->cleanUp(std::get<1>(loadResult))); + } else { + //todo: We finalize the model here. } println("We got to the end."); + //todo: We return the object's AnimatedMesh. return nullptr; }