- attempting to fix issue #492 - when checking for tools present in the database there were some errors in the NCC, ISO, MILL, PAINT and CUTOUT Tools

This commit is contained in:
Marius Stanciu
2021-01-09 23:25:10 +02:00
committed by Marius Stanciu
parent 9e9eabb04e
commit 8c8b781bdb
8 changed files with 26 additions and 22 deletions

View File

@@ -1286,10 +1286,10 @@ class GeometryObject(FlatCAMObj, Geometry):
tool_found += 1
updated_tooldia = db_tooldia
for d in db_tool_val['data']:
if d.find('tools_iso') == 0:
if d.find('tools_mill_') == 0:
new_tools_dict[d] = db_tool_val['data'][d]
elif d.find('tools_') == 0:
# don't need data for other App Tools; this tests after 'tools_drill_'
# don't need data for other App Tools; this tests after 'tools_mill_'
continue
else:
new_tools_dict[d] = db_tool_val['data'][d]