FIX: crash while using MontionLine pattern

Signed-off-by: qing.zhang <qing.zhang@bambulab.com>
Change-Id: I75232db2902a3d255336fecae7e5e628dc5ac3ba
This commit is contained in:
qing.zhang 2023-04-13 14:14:44 +08:00 committed by Lane.Wei
parent fbbfb06f6b
commit 60c444f627

View file

@ -475,7 +475,7 @@ void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive:
LayerRegion* layerm = this->m_regions[surface_fill.region_id];
for (ExPolygon& expoly : surface_fill.expolygons) {
f->no_overlap_expolygons = intersection_ex(surface_fill.no_overlap_expolygons, ExPolygons() = {expoly});
f->no_overlap_expolygons = intersection_ex(surface_fill.no_overlap_expolygons, ExPolygons() = {expoly}, ApplySafetyOffset::Yes);
// Spacing is modified by the filler to indicate adjustments. Reset it for each expolygon.
f->spacing = surface_fill.params.spacing;
surface_fill.surface.expolygon = std::move(expoly);