diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp index 0b173ec59d6..657b4d1afbf 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3/Mesh_3_plugin.cpp @@ -462,7 +462,9 @@ void Mesh_3_plugin::mesh_3(const bool surface_only, const bool use_defaults) if (!sm_items.empty()) { QList polyhedrons; - sm_items.removeAll(bounding_sm_item); + if(!surface_only) { + sm_items.removeAll(bounding_sm_item); + } std::transform(sm_items.begin(), sm_items.end(), std::back_inserter(polyhedrons), [](Scene_surface_mesh_item* item) {