Arch: fixed multiple-group bug in Arch addComponent

This commit is contained in:
Yorik van Havre
2017-11-27 11:54:44 -02:00
parent df427de3ee
commit f33116c08c
2 changed files with 2 additions and 5 deletions

View File

@@ -94,11 +94,8 @@ def addComponents(objectsList,host):
objectsList = [objectsList]
hostType = Draft.getType(host)
if hostType in ["Floor","Building","Site"]:
c = host.Group
for o in objectsList:
if not o in c:
c.append(o)
host.Group = c
host.addObject(o)
elif hostType in ["Wall","Structure","Window","Roof","Stairs","StructuralSystem","Panel"]:
import DraftGeomUtils
a = host.Additions