mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix bug in 124c028 saving defined unit as defining
This commit is contained in:
@@ -535,7 +535,7 @@ def get_property_table_unit(
|
|||||||
defined_unit = unit
|
defined_unit = unit
|
||||||
elif value := next(iter(prop.DefinedValues or ()), None):
|
elif value := next(iter(prop.DefinedValues or ()), None):
|
||||||
if unit_type := get_measure_unit_type(value.is_a()):
|
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 {
|
return {
|
||||||
"DefiningUnit": defining_unit,
|
"DefiningUnit": defining_unit,
|
||||||
|
|||||||
Reference in New Issue
Block a user