From ea6d5918ba86bbd45d739446b3c46cb946785e95 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 2 Sep 2024 19:42:13 +1000 Subject: [PATCH] Fix bug where openings were invalidly contained in a container --- src/bonsai/bonsai/tool/root.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/tool/root.py b/src/bonsai/bonsai/tool/root.py index 3b27b861c3..a94759a375 100644 --- a/src/bonsai/bonsai/tool/root.py +++ b/src/bonsai/bonsai/tool/root.py @@ -170,7 +170,11 @@ class Root(bonsai.core.tool.Root): @classmethod def is_containable(cls, element: ifcopenshell.entity_instance) -> bool: - if element.is_a("IfcElement") or element.is_a("IfcGrid") or element.is_a("IfcAnnotation"): + if ( + (element.is_a("IfcElement") and not element.is_a("IfcFeatureElement")) + or element.is_a("IfcGrid") + or element.is_a("IfcAnnotation") + ): return True return False