Hide list attributes from attributes UI

As they're more internal and not very useful to users.
Example of list attributes popping up before this commit - https://i.imgur.com/Nxcb10O.png
This commit is contained in:
Andrej730
2024-12-27 19:40:29 +05:00
parent 227f315746
commit 2b1126d24d
@@ -44,8 +44,10 @@ class AttributesData:
excluded_keys = ["id", "type"]
else:
excluded_keys = ["type"]
# Same types also filtered by `import_attribute`.
exclude_value_types = (tuple, ifcopenshell.entity_instance)
for key, value in data.items():
if value is None or isinstance(value, ifcopenshell.entity_instance) or key in excluded_keys:
if value is None or isinstance(value, exclude_value_types) or key in excluded_keys:
continue
if key == "id":
key = "STEP ID"