Fixed error with switching from EDIT mode for annotation meshes

Error occured when you were editing annotation mesh and tried to switched from EDIT mode

Error: Python: Traceback (most recent call last):
  File "\blenderbim\bim\module\geometry\operator.py", line 838, in invoke
    elif element.HasOpenings:
  File "\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 153, in __getattr__
    raise AttributeError(
AttributeError: entity instance of type 'IFC4.IfcAnnotation' has no attribute 'HasOpenings'
This commit is contained in:
Andrej730
2023-04-01 12:00:07 +05:00
parent b9d7b95304
commit b6598f09a3
@@ -825,7 +825,7 @@ class OverrideModeSetObject(bpy.types.Operator):
continue
element = tool.Ifc.get_entity(obj)
if not element:
if not element or element.is_a("IfcAnnotation"):
continue
if obj.data.BIMMeshProperties.ifc_definition_id: