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>2019-03-19 18:48:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-19 18:52:55 +0300
commit57395061042fe336dae7ee33e3ae11e53d068194 (patch)
tree02ea901d9229e417647ecb39b3f7d04df2ef01ce /source/blender/editors/armature/armature_select.c
parentbd803939957555e9c22b096365238704f55f6b3e (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/armature/armature_select.c')
-rw-r--r--source/blender/editors/armature/armature_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c
index 658392f77aa..8e58f14ec99 100644
--- a/source/blender/editors/armature/armature_select.c
+++ b/source/blender/editors/armature/armature_select.c
@@ -421,7 +421,7 @@ static EditBone *get_nearest_editbonepoint(
if (vc->v3d->shading.type > OB_WIRE) {
do_nearest = true;
- if (len_manhattan_v2v2_int(vc->mval, last_mval) < 3) {
+ if (len_manhattan_v2v2_int(vc->mval, last_mval) < WM_EVENT_CURSOR_MOTION_THRESHOLD) {
do_nearest = false;
}
}