- NCC Tool - allow no tool at NCC Tool start (the Preferences have no tool)

This commit is contained in:
Marius Stanciu 2020-06-12 05:53:31 +03:00 committed by Marius
parent 1f9b0a2747
commit 5cf363a8db
2 changed files with 3 additions and 5 deletions

View File

@ -11,7 +11,7 @@ CHANGELOG for FlatCAM beta
- NCC Tool optimization - moved the UI in its own class
- NCC Tool optimization - optimized the Tool edit method
- NCC Tool - allow no tool at NCC Tool start (the Preferences have no tool)
11.06.2020

View File

@ -511,10 +511,8 @@ class NonCopperClear(AppTool, Gerber):
dias = [float(self.app.defaults["tools_ncctools"])]
except (ValueError, TypeError):
dias = [float(eval(dia)) for dia in self.app.defaults["tools_ncctools"].split(",") if dia != '']
if not dias:
log.error("At least one tool diameter needed. Verify in Edit -> Preferences -> TOOLS -> NCC Tools.")
return
except Exception:
dias = []
self.tooluid = 0