From f41ff3a45866a31c3fde5544b4dfffb7c3229d64 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 22 Nov 2017 12:12:43 -0200 Subject: [PATCH] Arch: Fixed 'object in more than one group' bug in Arch --- src/Mod/Arch/ArchCommands.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Mod/Arch/ArchCommands.py b/src/Mod/Arch/ArchCommands.py index a4116aa58d..b35538e573 100644 --- a/src/Mod/Arch/ArchCommands.py +++ b/src/Mod/Arch/ArchCommands.py @@ -126,11 +126,8 @@ def addComponents(objectsList,host): a.append(o) host.Objects = a elif host.isDerivedFrom("App::DocumentObjectGroup"): - c = host.Group for o in objectsList: - if not o in c: - c.append(o) - host.Group = c + host.addObject(o) def removeComponents(objectsList,host=None): '''removeComponents(objectsList,[hostObject]): removes the given component or