diff --git a/src/graphics/model/model_gltf.cpp b/src/graphics/model/model_gltf.cpp index 1806e113..72cb859d 100644 --- a/src/graphics/model/model_gltf.cpp +++ b/src/graphics/model/model_gltf.cpp @@ -20,12 +20,12 @@ #include "graphics/model/model_mod.h" #include "common/ioutils.h" +#include "common/logger.h" #include "common/resources/inputstream.h" #include "graphics/model/model_io_exception.h" #include "graphics/model/model_io_structs.h" -#include #include #include @@ -155,7 +155,7 @@ void GLTFLoader::ReadBuffers() } else { - std::cerr << "Base64 not yet supported"; + GetLogger()->Error("Base64 not yet supported\n"); } m_buffers.emplace_back(std::move(buffer)); @@ -638,7 +638,7 @@ std::vector GLTFLoader::ReadUVs(int index) } else { - std::cerr << "Invalid UV type: " << accessor.componentType << '\n'; + GetLogger()->Error("Invalid UV type: %d\n", accessor.componentType); } return uvs; @@ -677,7 +677,7 @@ std::vector GLTFLoader::ReadColors(int index) } else { - std::cerr << "Invalid color type: " << accessor.componentType << '\n'; + GetLogger()->Error("Invalid color type: %d\n", accessor.componentType); } return colors;