Fix bug when using the search operator (F3) with no active object

This commit is contained in:
Gorgious56
2023-07-18 10:43:36 +02:00
parent e0fffbfdfe
commit db64fabf43
@@ -552,7 +552,8 @@ class ShowBooleans(Operator, tool.Ifc.Operator, AddObjectHelper):
def poll(cls, context):
obj = context.active_object
return (
obj.data
obj is not None
and obj.data
and hasattr(obj.data, "BIMMeshProperties")
and obj.data.BIMMeshProperties.ifc_definition_id
)