From 143e094db864ae887d356888d5fcf2c961572733 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 2 Aug 2024 14:06:18 +0500 Subject: [PATCH] assign default container on assigning IfcAnnotation class Currently if you create a IfcAnnotation it might just get lost as it's not assigned anywhere. Also noticed this since previously we allowed using bim.add_reference_image without any specific drawings. --- src/blenderbim/blenderbim/tool/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/tool/root.py b/src/blenderbim/blenderbim/tool/root.py index bac67eac83..4a35e2dc40 100644 --- a/src/blenderbim/blenderbim/tool/root.py +++ b/src/blenderbim/blenderbim/tool/root.py @@ -173,7 +173,7 @@ class Root(blenderbim.core.tool.Root): @classmethod def is_containable(cls, element: ifcopenshell.entity_instance) -> bool: - return element.is_a("IfcElement") or element.is_a("IfcGrid") + return element.is_a("IfcElement") or element.is_a("IfcAnnotation") or element.is_a("IfcGrid") @classmethod def is_element_a(cls, element: ifcopenshell.entity_instance, ifc_class: str) -> bool: