Fix bug where you couldn't do a partial import when whitelisting only spatial elements

This commit is contained in:
Dion Moult
2021-04-09 15:43:41 +10:00
parent 5cea988911
commit fd3a873bbd
+5 -1
View File
@@ -414,7 +414,11 @@ class IfcImporter:
self.exclude_elements |= self.native_elements
def is_native(self, element):
if not element.Representation or not element.Representation.Representations or element.HasOpenings:
if (
not element.Representation
or not element.Representation.Representations
or getattr(element, "HasOpenings", None)
):
return
representations = self.get_transformed_body_representations(element.Representation.Representations)