This commit is contained in:
Andrej730
2024-09-20 22:55:21 +05:00
parent 65f9a745a3
commit df055cefd4
3 changed files with 56 additions and 30 deletions
+1 -1
View File
@@ -707,7 +707,7 @@ class Blender(bonsai.core.tool.Blender):
if not tool.Ifc.get():
return False
element = tool.Ifc.get_entity(obj)
return element and element.is_a() in classes
return bool(element) and element.is_a() in classes
@classmethod
def get_object_from_guid(cls, guid: str) -> Union[IFC_CONNECTED_TYPE, None]: