diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 18:48:11 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-19 18:52:55 +0300 |
commit | 57395061042fe336dae7ee33e3ae11e53d068194 (patch) | |
tree | 02ea901d9229e417647ecb39b3f7d04df2ef01ce /source/blender/editors/space_view3d | |
parent | bd803939957555e9c22b096365238704f55f6b3e (diff) |
UI: scale cursor motion threshold by DPI
This was using hard coded values of 2-3px.
Move both drag and motion thresholds to defines.
Diffstat (limited to 'source/blender/editors/space_view3d')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 6a42c06e59d..d7128b7d21a 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -1410,7 +1410,7 @@ static int mixed_bones_object_selectbuffer_extended( if (use_cycle) { if (v3d->shading.type > OB_WIRE) { do_nearest = true; - if (len_manhattan_v2v2_int(mval, last_mval) < 3) { + if (len_manhattan_v2v2_int(mval, last_mval) < WM_EVENT_CURSOR_MOTION_THRESHOLD) { do_nearest = false; } } |