Skip to content
Snippets Groups Projects
Commit 8425c513 authored by Thomas Müller's avatar Thomas Müller
Browse files

.obj loader: better warnings

parent 90167f6d
No related branches found
No related tags found
Loading
......@@ -40,11 +40,11 @@ std::vector<Vector3f> load_obj(const std::string& filename) {
bool ret = tinyobj::LoadObj(&attrib, &shapes, &materials, &warn, &err, filename.c_str());
if (!warn.empty()) {
tlog::warning() << "Obj: " << warn;
tlog::warning() << warn << " while loading '" << filename << "'";
}
if (!err.empty()) {
throw std::runtime_error{fmt::format("Error loading obj: {}", err)};
throw std::runtime_error{fmt::format("Error loading '{}': {}", filename, err)};
}
std::vector<Vector3f> result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment