Commit 937d97e5 authored by Philip Trettner's avatar Philip Trettner

Made it clearer when imported file does not exist

parent 67d3ef15
#include "Importer.hh"
#include <fstream>
#include <glm/glm.hpp>
#include <glow/objects/VertexArray.hh>
......@@ -31,6 +33,13 @@ glow::SharedVertexArray glow::assimp::Importer::load(const std::string& filename
using namespace assimp;
if (!std::ifstream(filename).good())
error() << "Error loading `" << filename << "' with Assimp.";
error() << " File not found/not readable";
return nullptr;
uint32_t flags = aiProcess_SortByPType;
if (mTriangulate)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment