Fix error fetching the description of a nameless attribute

This commit is contained in:
Gorgious
2022-10-31 10:34:18 +01:00
parent 3466a38a44
commit 757578a74b
+2
View File
@@ -121,6 +121,8 @@ def add_attribute_enum_items_descriptions(attribute_blender, enum_items):
def add_attribute_description(attribute_blender):
if not attribute_blender.name:
return
description = get_attribute_description(attribute_blender.ifc_class, attribute_blender.name)
if description:
attribute_blender.description = description