Bugfix when using NCC on multigeo

This commit is contained in:
Robert Niemöller 2020-11-07 23:11:15 +01:00
parent 84e8d3b8c3
commit 1a22ba7688
1 changed files with 2 additions and 0 deletions

View File

@ -2278,6 +2278,8 @@ class GeometryObject(FlatCAMObj, Geometry):
dia_cnc_dict.update({
'tooldia': tooldia_val
})
if "optimization_type" not in tools_dict[tooluid_key]['data']:
tools_dict[tooluid_key]['data']["optimization_type"] = self.app.defaults["geometry_optimization_type"]
# find the tool_dia associated with the tooluid_key
# search in the self.tools for the sel_tool_dia and when found see what tooluid has