From b31f5fce2d97d7aa13070cab7be2f3e7ec5e016a Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Tue, 25 Jun 2024 10:37:50 +0200 Subject: [PATCH] Assembly: Insert Component: Fix comparing names instead of comparing objects --- src/Mod/Assembly/CommandInsertLink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Assembly/CommandInsertLink.py b/src/Mod/Assembly/CommandInsertLink.py index 6f17dc7304..d9b2cfcd79 100644 --- a/src/Mod/Assembly/CommandInsertLink.py +++ b/src/Mod/Assembly/CommandInsertLink.py @@ -165,7 +165,7 @@ class TaskAssemblyInsertLink(QtCore.QObject): def process_objects(objs, item): onlyParts = self.form.CheckBox_ShowOnlyParts.isChecked() for obj in objs: - if obj.Name == self.assembly.Name: + if obj == self.assembly: continue # Skip current assembly if (