- NCC Tool: make sure to use the CutZ value set in Preferences NCC Tool section

This commit is contained in:
Marius Stanciu
2024-01-06 14:00:50 +02:00
parent 2517f31fa4
commit 830e8b7aff
2 changed files with 12 additions and 0 deletions

View File

@@ -2517,6 +2517,10 @@ class NonCopperClear(AppTool, Gerber):
geo_obj.multigeo = True
geo_obj.tools = dict(tools_storage)
# make sure to use the default tool cut depth from the NCC parameters as milling tool cut depth
for k, v in geo_obj.tools.items():
v["data"]["tools_mill_cutz"] = app_obj.options["tools_ncc_cutz"]
# -------------------------------------------------------------------------------------------------
# test if at least one tool has solid_geometry. If no tool has solid_geometry we raise an Exception
# -------------------------------------------------------------------------------------------------
@@ -2810,6 +2814,10 @@ class NonCopperClear(AppTool, Gerber):
geo_obj.multigeo = True
geo_obj.obj_options["tools_mill_tooldia"] = '0.0'
# make sure to use the default tool cut depth from the NCC parameters as milling tool cut depth
for k, v in geo_obj.tools.items():
v["data"]["tools_mill_cutz"] = app_obj.options["tools_ncc_cutz"]
# clean the progressive plotted shapes if it was used
if self.app.options["tools_ncc_plotting"] == 'progressive':
self.temp_shapes.clear(update=True)