Fix import bug where some IfcOpeningElements aren't put in the openings collection properly

This commit is contained in:
Dion Moult
2020-11-27 22:01:34 +11:00
parent 7ad35249b8
commit 3ad2d0eaac
@@ -1944,7 +1944,7 @@ class IfcImporter:
collection.objects.link(obj)
else:
self.ifc_import_settings.logger.error("An element could not be placed in the spatial tree %s", element)
elif hasattr(element, "HasFillings") and element.HasFillings:
elif element.is_a("IfcOpeningElement"):
self.opening_collection.objects.link(obj)
else:
self.ifc_import_settings.logger.warning("Warning: this object is outside the spatial hierarchy %s", element)