Skip to content

Commit 26cffb5

Browse files
authored
Merge pull request #1341 from Ultimaker/CURA-7774_fix_support_drops_through
CURA-7774 Fix support drops 'through' model.
2 parents 5e6f3d4 + 20c7edc commit 26cffb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/support.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,12 +1050,13 @@ void AreaSupport::generateSupportAreasForMesh(SliceDataStorage& storage, const S
10501050
{ // join with support from layer up
10511051
const Polygons empty;
10521052
const Polygons* layer_above = (layer_idx < support_areas.size()) ? &support_areas[layer_idx + 1] : &empty;
1053+
const Polygons model_mesh_on_layer = (layer_idx > 0) && !is_support_mesh_nondrop_place_holder ? storage.getLayerOutlines(layer_idx, no_support, no_prime_tower) : empty;
10531054
if (is_support_mesh_nondrop_place_holder)
10541055
{
10551056
layer_above = &empty;
10561057
layer_this = layer_this.unionPolygons(storage.support.supportLayers[layer_idx].support_mesh);
10571058
}
1058-
layer_this = AreaSupport::join(storage, *layer_above, layer_this, smoothing_distance);
1059+
layer_this = AreaSupport::join(storage, *layer_above, layer_this, smoothing_distance).difference(model_mesh_on_layer);
10591060
}
10601061

10611062
// make towers for small support

0 commit comments

Comments
 (0)