Fix export of classifications if they are only applied to a type or spatial element, not a regular element. See #1031.

This commit is contained in:
Dion Moult
2020-10-25 12:48:35 +11:00
parent 8872a13fd8
commit 4ebed8d029
@@ -651,7 +651,9 @@ class IfcParser():
def get_classification_references(self):
results = {}
for product in self.selected_products:
for product in self.selected_products \
+ self.selected_types \
+ self.selected_spatial_structure_elements:
for reference in product['raw'].BIMObjectProperties.classifications:
results[reference.name] = {
'ifc': None,