Print glTF loading issues to log

This commit is contained in:
JosiahWI 2023-10-08 12:33:24 -05:00 committed by Josiah VanderZee
parent 5aa9f8dcf4
commit ba61e081fc
1 changed files with 7 additions and 0 deletions

View File

@ -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"
@ -342,7 +344,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;
}