- fixed aperture move in Gerber Editor
- fixed drills/slots move in Excellon Editor - RELEASE 8.96
This commit is contained in:
@@ -1251,6 +1251,9 @@ class FCDrillSelect(DrawTool):
|
||||
self.storage = self.exc_editor_app.storage_dict
|
||||
# self.selected = self.exc_editor_app.selected
|
||||
|
||||
# here we store the selected tools
|
||||
self.sel_tools = set()
|
||||
|
||||
# here we store all shapes that were selected so we can search for the nearest to our click location
|
||||
self.sel_storage = FlatCAMExcEditor.make_storage()
|
||||
|
||||
@@ -1333,14 +1336,13 @@ class FCDrillSelect(DrawTool):
|
||||
except (TypeError, AttributeError):
|
||||
pass
|
||||
|
||||
sel_tools = set()
|
||||
self.exc_editor_app.tools_table_exc.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
|
||||
for shape_s in self.exc_editor_app.selected:
|
||||
for storage in self.exc_editor_app.storage_dict:
|
||||
if shape_s in self.exc_editor_app.storage_dict[storage].get_objects():
|
||||
sel_tools.add(storage)
|
||||
self.sel_tools.add(storage)
|
||||
|
||||
for storage in sel_tools:
|
||||
for storage in self.sel_tools:
|
||||
for k, v in self.draw_app.tool2tooldia.items():
|
||||
if v == storage:
|
||||
self.exc_editor_app.tools_table_exc.selectRow(int(k) - 1)
|
||||
|
||||
Reference in New Issue
Block a user