From 4a389e9deed1e87d1fcc4310331be28473d42a4b Mon Sep 17 00:00:00 2001 From: Tim Kuipers Date: Tue, 15 Mar 2022 14:37:14 +0100 Subject: [PATCH] Don't remove surface mode both cutting mesh areas. The polylines are recomputed by the stitching, so they should be cleared. However, the polygons should not be cleared for surface mode BOTH. They are already cleared for surface mode SURFACE, 35 lines above at line 150. Fixes CURA-9037 --- src/multiVolumes.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/multiVolumes.cpp b/src/multiVolumes.cpp index 28bcdf9a49..25a4147d65 100644 --- a/src/multiVolumes.cpp +++ b/src/multiVolumes.cpp @@ -184,7 +184,6 @@ void MultiVolumes::carveCuttingMeshes(std::vector& volumes, const std:: if (cutting_mesh.settings.get("magic_mesh_surface_mode") != ESurfaceMode::NORMAL) { cutting_mesh_polylines.clear(); - cutting_mesh_polygons.clear(); PolylineStitcher::stitch(new_polylines, cutting_mesh_polylines, cutting_mesh_polygons, surface_line_width); } }