Fixed another crash in Lightning infill.

This commit is contained in:
Lukáš Hejl 2022-05-19 15:08:50 +02:00
parent 76deba7e97
commit a5270f3c5a
2 changed files with 22 additions and 0 deletions

View file

@ -125,6 +125,8 @@ void Generator::generateTrees(const PrintObject &print_object, const std::functi
if (const BoundingBox &outlines_locator_bbox = outlines_locator.bbox(); outlines_locator_bbox.defined)
below_outlines_bbox.merge(outlines_locator_bbox);
below_outlines_bbox.merge(get_extents(current_lightning_layer.tree_roots).inflated(SCALED_EPSILON));
outlines_locator.set_bbox(below_outlines_bbox);
outlines_locator.create(below_outlines, locator_cell_size);