Improve the costing UI to format numbers properly and not take up so much space for cost components

This commit is contained in:
Dion Moult
2021-05-14 15:12:25 +10:00
parent 6ec23faf26
commit 7c6e7996ff
3 changed files with 42 additions and 23 deletions
@@ -154,6 +154,7 @@ def copy_deep(ifc_file, element):
if isinstance(attribute, ifcopenshell.entity_instance):
attribute = copy_deep(ifc_file, attribute)
elif isinstance(attribute, tuple) and attribute and isinstance(attribute[0], ifcopenshell.entity_instance):
attribute = list(attribute)
for j, item in enumerate(attribute):
attribute[j] = copy_deep(ifc_file, item)
new[i] = attribute