Arch: Minor bugfix

This commit is contained in:
Yorik van Havre 2012-08-30 20:22:22 -03:00
parent 5bb46b732d
commit 35cc5ef56f
2 changed files with 1394 additions and 1399 deletions

View File

@ -99,6 +99,12 @@ def addComponents(objectsList,host):
if hasattr(o,"Shape"):
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
def removeComponents(objectsList,host=None):
'''removeComponents(objectsList,[hostObject]): removes the given component or

File diff suppressed because it is too large Load Diff