From 867309b0d48ec9cd546b1e85df6aa46abddc2d61 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Wed, 3 Dec 2025 05:44:55 +0100 Subject: [PATCH] Part: make Part_EditAttachment nesting aware (#25887) --- src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py index ae00c975f4..170bddc8df 100644 --- a/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py +++ b/src/Mod/Part/AttachmentEditor/TaskAttachmentEditor.py @@ -135,7 +135,7 @@ def RefsFromStrList(strings, document): def GetSelectionAsLinkSubList(): - sel = Gui.Selection.getSelectionEx() + sel = Gui.Selection.getSelectionEx("", 0) result = [] for selobj in sel: for subname in selobj.SubElementNames: @@ -372,7 +372,7 @@ class AttachmentEditorTaskPanel(FrozenClass): self.i_active_ref = -1 self.auto_next = False - Gui.Selection.addObserver(self) + Gui.Selection.addObserver(self, 0) self.updatePreview() self.updateRefButtons()