mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +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 = [
|
if prop.enum_descriptions:
|
||||||
(identifier, name, prop.enum_descriptions[i].name) for i, (identifier, name, _) in enumerate(items)
|
items = [(identifier, name, prop.enum_descriptions[i].name) for i, (identifier, name, _) in enumerate(items)]
|
||||||
]
|
|
||||||
|
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user