Merge branch 'master' into blender2.8
[blender.git] / source / blender / editors / space_view3d / view3d_gizmo_ruler.c
index 1fe9a2b1632a8b6d6f35915cc79beb946acddc70..d7a605eca5e3d4ffc262e756bc8dd9355945f1e7 100644 (file)
@@ -577,7 +577,7 @@ static void gizmo_ruler_draw(const bContext *C, wmGizmo *gz)
                        float quat[4];
                        float axis[3];
                        float angle;
-                       const float px_scale = (ED_view3d_pixel_size(rv3d, ruler_item->co[1]) *
+                       const float px_scale = (ED_view3d_pixel_size_no_ui_scale(rv3d, ruler_item->co[1]) *
                                                min_fff(arc_size,
                                                        len_v2v2(co_ss[0], co_ss[1]) / 2.0f,
                                                        len_v2v2(co_ss[2], co_ss[1]) / 2.0f));