Просмотр исходного кода

- 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

Marius Stanciu 5 лет назад
Родитель
Сommit
c99b20df7b
2 измененных файлов с 5 добавлено и 4 удалено
  1. 1 0
      CHANGELOG.md
  2. 4 4
      appObjects/FlatCAMGeometry.py

+ 1 - 0
CHANGELOG.md

@@ -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
 

+ 4 - 4
appObjects/FlatCAMGeometry.py

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