mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +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 = []
|
type_elements = []
|
||||||
for identifier in self.identifiers:
|
for identifier in self.identifiers:
|
||||||
|
# Skip 'Untyped' option for annotation types.
|
||||||
|
if identifier == "0":
|
||||||
|
continue
|
||||||
element = ifc_file.by_id(int(identifier))
|
element = ifc_file.by_id(int(identifier))
|
||||||
if element and element.is_a().endswith("Type"):
|
if element and element.is_a().endswith("Type"):
|
||||||
type_elements.append(element)
|
type_elements.append(element)
|
||||||
|
|||||||
Reference in New Issue
Block a user