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

This commit is contained in:
Marius Stanciu 2020-05-03 17:38:41 +03:00 committed by Marius
parent 17a2c0e4c1
commit 59a2414723
2 changed files with 2 additions and 1 deletions

View File

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

View File

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