mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +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):
|
def poll(cls, context):
|
||||||
obj = context.active_object
|
obj = context.active_object
|
||||||
return (
|
return (
|
||||||
obj.data
|
obj is not None
|
||||||
|
and obj.data
|
||||||
and hasattr(obj.data, "BIMMeshProperties")
|
and hasattr(obj.data, "BIMMeshProperties")
|
||||||
and obj.data.BIMMeshProperties.ifc_definition_id
|
and obj.data.BIMMeshProperties.ifc_definition_id
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user