FIX: crash sometimes when using ipLightning in Organic tree

jira: STUDIO-10957
Change-Id: I8126540bd04f1c74a39171161ee29c7b6ace9f18
This commit is contained in:
jiaxi.chen 2025-03-18 15:14:37 +08:00 committed by lane.wei
parent b2256c828b
commit 47a30a3e2a
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ void Filler::_fill_surface_single(
ExPolygon expolygon, ExPolygon expolygon,
Polylines &polylines_out) Polylines &polylines_out)
{ {
if (!generator) return;
const Layer &layer = generator->getTreesForLayer(this->layer_id); const Layer &layer = generator->getTreesForLayer(this->layer_id);
Polylines fill_lines = layer.convertToLines(to_polygons(expolygon), scaled<coord_t>(0.5 * this->spacing - this->overlap)); Polylines fill_lines = layer.convertToLines(to_polygons(expolygon), scaled<coord_t>(0.5 * this->spacing - this->overlap));