From c16894cabf48a2b9ae6caa3e2fd7295b2623210f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 5 Feb 2025 18:06:52 +0500 Subject: [PATCH] Fix bug in 124c028 saving defined unit as defining --- src/ifcopenshell-python/ifcopenshell/util/unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/unit.py b/src/ifcopenshell-python/ifcopenshell/util/unit.py index 2820592a84..b19b8154c9 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/unit.py +++ b/src/ifcopenshell-python/ifcopenshell/util/unit.py @@ -535,7 +535,7 @@ def get_property_table_unit( defined_unit = unit elif value := next(iter(prop.DefinedValues or ()), None): if unit_type := get_measure_unit_type(value.is_a()): - defining_unit = get_project_unit(ifc_file, unit_type, use_cache=use_cache) + defined_unit = get_project_unit(ifc_file, unit_type, use_cache=use_cache) return { "DefiningUnit": defining_unit,