mirror of
https://github.com/minetest/irrlicht.git
synced 2025-02-22 13:50:25 +01:00
Print glTF loading issues to log
This commit is contained in:
parent
53c92b0b1d
commit
16b784162b
@ -2,8 +2,10 @@
|
|||||||
#include "CMeshBuffer.h"
|
#include "CMeshBuffer.h"
|
||||||
#include "coreutil.h"
|
#include "coreutil.h"
|
||||||
#include "IAnimatedMesh.h"
|
#include "IAnimatedMesh.h"
|
||||||
|
#include "ILogger.h"
|
||||||
#include "IReadFile.h"
|
#include "IReadFile.h"
|
||||||
#include "irrTypes.h"
|
#include "irrTypes.h"
|
||||||
|
#include "os.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
#include "S3DVertex.h"
|
#include "S3DVertex.h"
|
||||||
#include "SAnimatedMesh.h"
|
#include "SAnimatedMesh.h"
|
||||||
@ -342,7 +344,12 @@ bool CGLTFMeshFileLoader::tryParseGLTF(io::IReadFile* file,
|
|||||||
auto buf = std::make_unique<char[]>(file->getSize());
|
auto buf = std::make_unique<char[]>(file->getSize());
|
||||||
file->read(buf.get(), file->getSize());
|
file->read(buf.get(), file->getSize());
|
||||||
|
|
||||||
|
if (warn != "") {
|
||||||
|
os::Printer::log(warn.c_str(), ELL_WARNING);
|
||||||
|
}
|
||||||
|
|
||||||
if (err != "") {
|
if (err != "") {
|
||||||
|
os::Printer::log(err.c_str(), ELL_ERROR);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user