- Milling Plugin: when an object has a "tools_mill_tooldia" property set as an object option it is used to set the Tool Dia field

This commit is contained in:
Marius Stanciu
2024-01-07 03:04:21 +02:00
parent 830e8b7aff
commit 97bc45926a
2 changed files with 11 additions and 4 deletions

View File

@@ -644,7 +644,10 @@ class ToolMilling(AppTool, Excellon):
# #######3 TEMP SETTINGS #################
# ########################################
self.ui.addtool_entry.set_value(self.app.options["tools_mill_tooldia"])
try:
self.ui.addtool_entry.set_value(selected_obj.obj_options["tools_mill_tooldia"])
except AttributeError:
self.ui.addtool_entry.set_value(self.app.options["tools_mill_tooldia"])
self.on_object_changed()
if self.target_obj: