mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix bug when using the search operator (F3) with no active object
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user