- fixed bug that allowed empty tool in the tools generated in Geometry object

- fixed bug in Tool Cutout that did not allow the transfer of used cutout tool diameter to the cutout geometry object
This commit is contained in:
Marius Stanciu
2019-07-08 20:06:41 +03:00
parent 5e401fd9f7
commit 769f92147a
5 changed files with 15 additions and 5 deletions

View File

@@ -3237,8 +3237,9 @@ class FlatCAMGeometry(FlatCAMObj, Geometry):
self.default_data[def_key] = deepcopy(opt_val)
try:
temp_tools = self.options["cnctooldia"].split(",")
tools_list = [
float(eval(dia)) for dia in self.options["cnctooldia"].split(",")
float(eval(dia)) for dia in temp_tools if dia != ''
]
except Exception as e:
log.error("At least one tool diameter needed. Verify in Edit -> Preferences -> Geometry General -> "