Procházet zdrojové kódy

- protected a dict in VispyVisuals from issuing errors of keys changed while iterating through it

Marius Stanciu před 5 roky
rodič
revize
59a2414723
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      CHANGELOG.md
  2. 1 1
      flatcamGUI/VisPyVisuals.py

+ 1 - 0
CHANGELOG.md

@@ -15,6 +15,7 @@ CHANGELOG for FlatCAM beta
 - updated the Italian translation
 - updated the translation files
 - changed the line endings for Makefile and setup_ubuntu.sh files
+- protected a dict in VispyVisuals from issuing errors of keys changed while iterating through it
 
 2.05.2020
 

+ 1 - 1
flatcamGUI/VisPyVisuals.py

@@ -462,7 +462,7 @@ class ShapeCollectionVisual(CompoundVisual):
         self.update_lock.acquire(True)
 
         # Merge shapes buffers
-        for data in self.data.values():
+        for data in list(self.data.values()):
             if data['visible'] and 'line_pts' in data:
                 try:
                     line_pts[data['layer']] += data['line_pts']