diff --git a/src/Mod/Assembly/CommandInsertLink.py b/src/Mod/Assembly/CommandInsertLink.py index aa343a262b..ea889c4271 100644 --- a/src/Mod/Assembly/CommandInsertLink.py +++ b/src/Mod/Assembly/CommandInsertLink.py @@ -168,6 +168,10 @@ class TaskAssemblyInsertLink(QtCore.QObject): if obj == self.assembly: continue # Skip current assembly + if obj in self.assembly.InListRecursive: + continue # Prevent dependency loop. + # For instance if asm1/asm2 with asm2 active, we don't want to have asm1 in the list + if ( obj.isDerivedFrom("Part::Feature") or obj.isDerivedFrom("App::Part")