Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Print glTF loading issues to log
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahWI committed Oct 8, 2023
1 parent 8d07559 commit 44a31c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/Irrlicht/CGLTFMeshFileLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
#include "CMeshBuffer.h"
#include "coreutil.h"
#include "IAnimatedMesh.h"
#include "ILogger.h"
#include "IReadFile.h"
#include "irrTypes.h"
#include "os.h"
#include "path.h"
#include "S3DVertex.h"
#include "SAnimatedMesh.h"
Expand Down Expand Up @@ -341,7 +343,12 @@ bool CGLTFMeshFileLoader::tryParseGLTF(io::IReadFile* file,
auto buf = std::make_unique<char[]>(file->getSize());
file->read(buf.get(), file->getSize());

if (warn != "") {
os::Printer::log(warn.c_str(), ELL_WARNING);
}

if (err != "") {
os::Printer::log(err.c_str(), ELL_ERROR);
return false;
}

Expand Down

0 comments on commit 44a31c7

Please sign in to comment.