Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-25 11:07:28 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-25 11:07:28 +0300
commit230943be2d0bb8cc508f0938003597249a9ddebb (patch)
tree7b28eb9d134e7c859fb14557e9d6c511858ea577 /source/blender/draw/intern/draw_view.c
parentef22d2e8adb9965cd3cb91e733d4b9754cf6024f (diff)
Fix 3D Cursor w/ interface scale
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index 2c4e5f8b151..726d77a9925 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -682,7 +682,7 @@ void DRW_draw_cursor(void)
immUniformThemeColor3(TH_VIEW_OVERLAY);
immBegin(GWN_PRIM_LINES, 12);
- const float scale = ED_view3d_pixel_size(rv3d, cursor->location) * 20;
+ const float scale = ED_view3d_pixel_size_no_ui_scale(rv3d, cursor->location) * U.widget_unit;
#define CURSOR_VERT(axis_vec, axis, fac) \
immVertex3f( \