mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
Fix error fetching the description of a nameless attribute
This commit is contained in:
@@ -121,6 +121,8 @@ def add_attribute_enum_items_descriptions(attribute_blender, enum_items):
|
|||||||
|
|
||||||
|
|
||||||
def add_attribute_description(attribute_blender):
|
def add_attribute_description(attribute_blender):
|
||||||
|
if not attribute_blender.name:
|
||||||
|
return
|
||||||
description = get_attribute_description(attribute_blender.ifc_class, attribute_blender.name)
|
description = get_attribute_description(attribute_blender.ifc_class, attribute_blender.name)
|
||||||
if description:
|
if description:
|
||||||
attribute_blender.description = description
|
attribute_blender.description = description
|
||||||
|
|||||||
Reference in New Issue
Block a user