mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 23:12:34 +00:00
avoid warning for structural analysis entities
regarding spatial hierarchy
This commit is contained in:
@@ -1293,6 +1293,8 @@ class IfcImporter:
|
|||||||
elif element.is_a("IfcOpeningElement"):
|
elif element.is_a("IfcOpeningElement"):
|
||||||
self.opening_collection.objects.link(obj)
|
self.opening_collection.objects.link(obj)
|
||||||
else:
|
else:
|
||||||
|
# Avoid watrning for structural analysis entities
|
||||||
|
if "Structural" not in element.is_a(): # TODO test with the list of structural analysis entities
|
||||||
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)
|
||||||
bpy.context.scene.collection.objects.link(obj)
|
bpy.context.scene.collection.objects.link(obj)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user