- moved all the Levelling stuff out of the CNCjob Properties Tab to its own tool, Levelling Tool. The functionality itself is not finished yet.

This commit is contained in:
Marius Stanciu
2021-01-02 22:04:05 +02:00
committed by Marius
parent 3995080503
commit 230b8b9f3a
11 changed files with 2310 additions and 1949 deletions

View File

@@ -1150,8 +1150,11 @@ class ToolMilling(AppTool, Excellon):
def on_object_selection_changed(self, current, previous):
try:
name = current.indexes()[0].internalPointer().obj.options['name']
self.ui.object_combo.set_value(name)
sel_obj = current.indexes()[0].internalPointer().obj
name = sel_obj.options['name']
kind = sel_obj.kind
if kind in ['geometry', 'excellon']:
self.ui.object_combo.set_value(name)
except IndexError:
pass