Skip to content

Commit

Permalink
Don't remove surface mode both cutting mesh areas.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
BagelOrb committed Aug 11, 2022
1 parent 06364d5 commit 4a389e9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/multiVolumes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ void MultiVolumes::carveCuttingMeshes(std::vector<Slicer*>& volumes, const std::
if (cutting_mesh.settings.get<ESurfaceMode>("magic_mesh_surface_mode") != ESurfaceMode::NORMAL)
{
cutting_mesh_polylines.clear();
cutting_mesh_polygons.clear();
PolylineStitcher<Polygons, Polygon, Point>::stitch(new_polylines, cutting_mesh_polylines, cutting_mesh_polygons, surface_line_width);
}
}
Expand Down

0 comments on commit 4a389e9

Please sign in to comment.