- in Tool Cutout, when using the Thin Gaps feature, the resulting geometry loose the extra color by toggling tool plot in Geometry UI Tools Table- fixed

This commit is contained in:
Marius Stanciu
2020-08-27 03:16:07 +03:00
committed by Marius
parent 19b5e100d5
commit c99b20df7b
2 changed files with 5 additions and 4 deletions

View File

@@ -2843,10 +2843,10 @@ class GeometryObject(FlatCAMObj, Geometry):
break
if self.ui.geo_tools_table.cellWidget(check_row, 6).isChecked():
if 'override' in self.tools[tooluid_key]['data']:
self.plot_element(element=solid_geometry, visible=True,
color=self.tools[tooluid_key]['data']['override'])
else:
try:
color = self.tools[tooluid_key]['data']['override_color']
self.plot_element(element=solid_geometry, visible=True, color=color)
except KeyError:
self.plot_element(element=solid_geometry, visible=True)
self.shapes.redraw()