mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 06:18:09 +00:00
Fix import bug where some IfcOpeningElements aren't put in the openings collection properly
This commit is contained in:
@@ -1944,7 +1944,7 @@ class IfcImporter:
|
|||||||
collection.objects.link(obj)
|
collection.objects.link(obj)
|
||||||
else:
|
else:
|
||||||
self.ifc_import_settings.logger.error("An element could not be placed in the spatial tree %s", element)
|
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)
|
self.opening_collection.objects.link(obj)
|
||||||
else:
|
else:
|
||||||
self.ifc_import_settings.logger.warning("Warning: this object is outside the spatial hierarchy %s", element)
|
self.ifc_import_settings.logger.warning("Warning: this object is outside the spatial hierarchy %s", element)
|
||||||
|
|||||||
Reference in New Issue
Block a user