- Milling Tool - trying to fix an error on dragging and dropping tools in the Geo Tools Table

This commit is contained in:
Marius Stanciu
2020-12-02 02:18:39 +02:00
committed by Marius
parent c6160085ab
commit aa40b019a7
2 changed files with 8 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ CHANGELOG for FlatCAM beta
- Milling Tool - after creating and CNCJob object, it is now auto-selected and the Property tab is automatically switched to
- Milling Tool - various fixes
- Line_xyx preprocessor - fixed when using multidepth cut to use the right depth
- Milling Tool - trying to fix an error on dragging and dropping tools in the Geo Tools Table
29.11.2020

View File

@@ -555,9 +555,13 @@ class ToolMilling(AppTool, Excellon):
new_tools = {}
new_uid = 1
for current_uid in current_uid_list:
new_tools[new_uid] = deepcopy(self.tools[current_uid])
new_uid += 1
try:
for current_uid in current_uid_list:
new_tools[new_uid] = deepcopy(self.tools[current_uid])
new_uid += 1
except Exception as err:
self.app.log.debug("ToolMilling.on_geo_rebuild_ui() -> %s" % str(err))
return
self.tools = new_tools