mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix bug where you couldn't do a partial import when whitelisting only spatial elements
This commit is contained in:
@@ -414,7 +414,11 @@ class IfcImporter:
|
|||||||
self.exclude_elements |= self.native_elements
|
self.exclude_elements |= self.native_elements
|
||||||
|
|
||||||
def is_native(self, element):
|
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
|
return
|
||||||
representations = self.get_transformed_body_representations(element.Representation.Representations)
|
representations = self.get_transformed_body_representations(element.Representation.Representations)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user