Przeglądaj źródła

- fixed an error that created a situation that when saving a project with some of the CNCJob objects disabled, on project reload the CNCJob objects are no longer loaded

Marius Stanciu 6 lat temu
rodzic
commit
df98007a4a
2 zmienionych plików z 9 dodań i 2 usunięć
  1. 4 0
      README.md
  2. 5 2
      flatcamGUI/VisPyVisuals.py

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+22.03.2019
+
+- fixed an error that created a situation that when saving a project with some of the CNCJob objects disabled, on project reload the CNCJob objects are no longer loaded
+
 20.03.2019
 
 - added autocomplete finish with ENTER key for the TCL Shell

+ 5 - 2
flatcamGUI/VisPyVisuals.py

@@ -437,8 +437,11 @@ class TextGroup(object):
         :param value: bool
         """
         self._visible = value
-        self._collection.data[self._index]['visible'] = value
-
+        try:
+            self._collection.data[self._index]['visible'] = value
+        except KeyError:
+            print("VisPyVisuals.TextGroup.visible --> KeyError")
+            pass
         self._collection.redraw()