diff --git a/src/bonsai/bonsai/bim/module/model/decorator.py b/src/bonsai/bonsai/bim/module/model/decorator.py index 6ca85f5fa5..3786dc0f2c 100644 --- a/src/bonsai/bonsai/bim/module/model/decorator.py +++ b/src/bonsai/bonsai/bim/module/model/decorator.py @@ -573,7 +573,8 @@ class PolylineDecorator: if (i == 0 and direction.x < 0) or (i == 1 and direction.y < 0) or (i == 2 and direction.z < 0): value = -value prefix = "xyz"[i] - text = f"{prefix}: {str(value)}" + formatted_value = self.input_ui.format_input_ui_units(context, value) + text = f"{prefix}: {formatted_value}" text_length = blf.dimensions(self.font_id, text) self.draw_text_background(context, dim_text_coords, text_length) blf.draw(self.font_id, text)