mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Fix bug when attribute enum items descriptions are not filled in
This commit is contained in:
@@ -191,9 +191,8 @@ def get_attribute_enum_values(prop, context):
|
||||
)
|
||||
)
|
||||
|
||||
items = [
|
||||
(identifier, name, prop.enum_descriptions[i].name) for i, (identifier, name, _) in enumerate(items)
|
||||
]
|
||||
if prop.enum_descriptions:
|
||||
items = [(identifier, name, prop.enum_descriptions[i].name) for i, (identifier, name, _) in enumerate(items)]
|
||||
|
||||
return items
|
||||
|
||||
|
||||
Reference in New Issue
Block a user