Users no longer need to manually select types for collections when exporting

This commit is contained in:
Dion Moult
2020-07-10 14:08:04 +10:00
parent 65821c4367
commit 607e506767
@@ -573,6 +573,10 @@ class IfcParser():
for obj in selected_objects:
if obj.BIMObjectProperties.relating_type:
added_objs.append(obj.BIMObjectProperties.relating_type)
if obj.instance_type == 'COLLECTION':
for obj2 in obj.instance_collection.objects:
if obj2.BIMObjectProperties.relating_type:
added_objs.append(obj2.BIMObjectProperties.relating_type)
selected_objects.update(added_objs)
selected_objects = set(selected_objects)