This commit is contained in:
Marius Stanciu
2022-05-09 14:18:49 +03:00
committed by Marius
parent 411a9320e5
commit 9dc6c94a45
3 changed files with 34 additions and 7 deletions

View File

@@ -1976,9 +1976,7 @@ class ToolPaint(AppTool, Gerber):
total_geometry += list(x.get_objects())
# clean the geometry
new_geo = [g for g in total_geometry if g and not g.is_empty]
total_geometry = new_geo
final_solid_geometry += total_geometry
total_geometry = [g for g in total_geometry if g and not g.is_empty]
except grace:
return "fail"
except Exception as e:
@@ -1992,6 +1990,7 @@ class ToolPaint(AppTool, Gerber):
# dictionary and then reset the temporary list that stored that solid_geometry
tools_storage[current_uid]['solid_geometry'] = deepcopy(total_geometry)
tools_storage[current_uid]['data']['name'] = name
final_solid_geometry += total_geometry
# clean the progressive plotted shapes if it was used
if self.app.options["tools_paint_plotting"] == 'progressive':