- 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 - moved the UI in its own class
|
||||||
- NCC Tool optimization - optimized the Tool edit method
|
- 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
|
11.06.2020
|
||||||
|
|
||||||
|
|||||||
@@ -511,10 +511,8 @@ class NonCopperClear(AppTool, Gerber):
|
|||||||
dias = [float(self.app.defaults["tools_ncctools"])]
|
dias = [float(self.app.defaults["tools_ncctools"])]
|
||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
dias = [float(eval(dia)) for dia in self.app.defaults["tools_ncctools"].split(",") if dia != '']
|
dias = [float(eval(dia)) for dia in self.app.defaults["tools_ncctools"].split(",") if dia != '']
|
||||||
|
except Exception:
|
||||||
if not dias:
|
dias = []
|
||||||
log.error("At least one tool diameter needed. Verify in Edit -> Preferences -> TOOLS -> NCC Tools.")
|
|
||||||
return
|
|
||||||
|
|
||||||
self.tooluid = 0
|
self.tooluid = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user