Draft: Scale widget did not handle FEM unit system

The FEM UserSchema (8) was not handled by the code.
This commit is contained in:
Roy-043
2024-01-26 13:09:07 +01:00
parent f75db0dbb2
commit bd3e78691e

View File

@@ -78,12 +78,12 @@ def get_scales(unit_system = 0):
if unit_system == 0:
scale_units_system = params.get_param("UserSchema", path="Units")
if scale_units_system in [0, 1, 4, 6]:
return draft_scales_metrics
elif scale_units_system in [2, 3, 5]:
if scale_units_system in [2, 3, 5]:
return draft_scales_arch_imperial
elif scale_units_system in [7]:
return draft_scales_eng_imperial
else:
return draft_scales_metrics
elif unit_system == 1:
return draft_scales_metrics
elif unit_system == 2: