Add support for rounding metric and imperial units in drawings

This commit is contained in:
Dion Moult
2020-10-31 21:46:09 +11:00
parent b08346cc64
commit 9447e87ebd
3 changed files with 30 additions and 9 deletions
@@ -2108,3 +2108,8 @@ def ifc_units(self, context):
row.prop(props, 'area_unit')
row = layout.row()
row.prop(props, 'volume_unit')
row = layout.row()
if bpy.context.scene.unit_settings.system == 'IMPERIAL':
row.prop(props, 'imperial_precision')
else:
row.prop(props, 'metric_precision')