From 666379fe7cf7455b892d5e1b66f3928102cca3a1 Mon Sep 17 00:00:00 2001 From: Antonio Vazquez Date: Fri, 31 Jul 2020 10:02:07 +0200 Subject: Measureit: Fix unreported missing scene scale in arcs The scale of the scene was not applied to the arcs. This fix is related to D8418, but with minor changes. --- measureit/measureit_geometry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py index 1f314f7f..998bc038 100644 --- a/measureit/measureit_geometry.py +++ b/measureit/measureit_geometry.py @@ -413,7 +413,7 @@ def draw_segments(context, myobj, op, region, rv3d): if ms.gltype == 11: # arc # print length or arc and angle if ms.glarc_len is True: - tx_dist = ms.glarc_txlen + format_distance(fmt, units, arc_length) + tx_dist = ms.glarc_txlen + format_distance(fmt, units, arc_length * scale) else: tx_dist = " " @@ -453,7 +453,7 @@ def draw_segments(context, myobj, op, region, rv3d): if scene.measureit_gl_show_d is True and ms.gldist is True and \ ms.glarc_rad is True: tx_dist = ms.glarc_txradio + format_distance(fmt, units, - dist * scene.measureit_scale_factor) + dist * scene.measureit_scale_factor * scale) else: tx_dist = " " if ms.gltype == 2: -- cgit v1.2.3