diff --git a/tiny_obj_loader.h b/tiny_obj_loader.h index 2a0f66f..d459047 100644 --- a/tiny_obj_loader.h +++ b/tiny_obj_loader.h @@ -1035,6 +1035,10 @@ static bool exportGroupsToShape(shape_t *shape, + if (faceGroup.empty() && lineGroup.empty()) { + return false; + } + if (!faceGroup.empty()) { // Flatten vertices and indices