mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix error searching for annotation types #7103
This commit is contained in:
@@ -1117,6 +1117,9 @@ class BIM_OT_enum_property_search(bpy.types.Operator):
|
||||
|
||||
type_elements = []
|
||||
for identifier in self.identifiers:
|
||||
# Skip 'Untyped' option for annotation types.
|
||||
if identifier == "0":
|
||||
continue
|
||||
element = ifc_file.by_id(int(identifier))
|
||||
if element and element.is_a().endswith("Type"):
|
||||
type_elements.append(element)
|
||||
|
||||
Reference in New Issue
Block a user