- NCC Tool - allow no tool at NCC Tool start (the Preferences have no tool)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user