From d0ef7f69b16cd202044cb559a0a354afd5509f4f Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Mon, 2 Oct 2023 14:56:17 -0500 Subject: [PATCH] fix #3792 --- src/blenderbim/blenderbim/bim/module/drawing/helper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/helper.py b/src/blenderbim/blenderbim/bim/module/drawing/helper.py index 56a7887d27..043c5d7bbd 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/helper.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/helper.py @@ -180,6 +180,14 @@ def format_distance( frac = 0 inches += 1 + # Check values and compose string + if inches == 12: + if unit_length == "INCHES": + inches = 12 + if unit_length == "FEET": + feet += 1 + inches = 0 + if not isArea: add_inches = bool(inches) or not suppress_zero_inches