- 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

@ -10,6 +10,7 @@ CHANGELOG for FlatCAM beta
27.08.2020
- fixed the Tcl commands AddCircle, AddPolygon, AddPolyline and AddRectangle to have stored bounds therefore making them movable/selectable on canvas
- 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
26.08.2020

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()