mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user