See #5110. Minor fix when appending linked elements.

This commit is contained in:
Dion Moult
2024-08-02 16:29:14 +10:00
parent 42dda0a07a
commit 321bb7178d
@@ -1874,8 +1874,7 @@ class AppendInspectedLinkedElement(AppendLibraryElement):
)
self.import_product_from_ifc(element, context)
element_type = ifcopenshell.util.element.get_type(element)
obj = tool.Ifc.get_object(element_type)
if obj is None:
if element_type and tool.Ifc.get_object(element_type) is None:
self.import_type_from_ifc(element_type, context)
return {"FINISHED"}