mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 03:29:44 -06:00
Updated tinyobjloader and applied the changes
This commit is contained in:
@@ -53,9 +53,10 @@ void WavefrontGeometry::deinitialize() {
|
||||
bool WavefrontGeometry::loadModel(const std::string& filename) {
|
||||
std::vector<tinyobj::shape_t> shapes;
|
||||
std::vector<tinyobj::material_t> materials;
|
||||
std::string err = tinyobj::LoadObj(shapes, materials, filename.c_str(), filename.c_str());
|
||||
std::string err;
|
||||
bool success = tinyobj::LoadObj(shapes, materials, err, filename.c_str(), filename.c_str());
|
||||
|
||||
if (!err.empty()) {
|
||||
if (!success) {
|
||||
LERROR(err);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user