Arch: Fixed some missing objects in IFC export

This commit is contained in:
Yorik van Havre
2018-01-05 20:04:40 -02:00
parent 9469217347
commit d16ef8763e
2 changed files with 4 additions and 1 deletions

View File

@@ -357,6 +357,9 @@ def getGroupContents(objectslist,walls=False,addgroups=False,spaces=False):
for obj in objectslist:
if obj:
if obj.isDerivedFrom("App::DocumentObjectGroup") or ((getType(obj) in ["Space","Site"]) and hasattr(obj,"Group")):
if getType(obj) == "Site":
if obj.Shape:
newlist.append(obj)
if obj.isDerivedFrom("Drawing::FeaturePage"):
# skip if the group is a page
newlist.append(obj)