FIX: fix the empty layer after adding modifier
Signed-off-by: qing.zhang <qing.zhang@bambulab.com> Change-Id: Iad6c149cb5f1a50a199fdf1dd50f4971898972e2 (cherry picked from commit 6065729c6febb9f3a704dde12bda6ad34f62caec)
This commit is contained in:
parent
39df4c8b49
commit
59dfcb98fc
|
@ -468,7 +468,7 @@ void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive:
|
||||||
|
|
||||||
LayerRegion* layerm = this->m_regions[surface_fill.region_id];
|
LayerRegion* layerm = this->m_regions[surface_fill.region_id];
|
||||||
for (ExPolygon& expoly : surface_fill.expolygons) {
|
for (ExPolygon& expoly : surface_fill.expolygons) {
|
||||||
f->no_overlap_expolygons = intersection_ex(layerm->fill_no_overlap_expolygons, ExPolygons() = { expoly });
|
f->no_overlap_expolygons = intersection_ex(surface_fill.no_overlap_expolygons, ExPolygons() = {expoly});
|
||||||
// Spacing is modified by the filler to indicate adjustments. Reset it for each expolygon.
|
// Spacing is modified by the filler to indicate adjustments. Reset it for each expolygon.
|
||||||
f->spacing = surface_fill.params.spacing;
|
f->spacing = surface_fill.params.spacing;
|
||||||
surface_fill.surface.expolygon = std::move(expoly);
|
surface_fill.surface.expolygon = std::move(expoly);
|
||||||
|
|
Loading…
Reference in New Issue