diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-11 07:34:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-11 07:48:46 +0300 |
commit | 43156d830470fbbcd89bc1bd4b1f32d3348ba7a9 (patch) | |
tree | 605c05ee3b73459c8acf594024073e148dbfa5cb /source/blender/makesrna | |
parent | 1daaa74b089875562117b3978e5fe9783c21bbf5 (diff) |
Preferences: remove tweak/drag threshold distinction
Currently the preferences have both tweak and drag threshold,
this is confusing because most actions users would consider
dragging use the 'tweak' setting.
Now one drag threshold is used for both, with a maximum limit of half
the button unit-size in case of dragging UI elements.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index d11d1f7d515..38ce8a808a6 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -4671,16 +4671,11 @@ static void rna_def_userdef_input(BlenderRNA *brna) /* tweak tablet & mouse preset */ prop = RNA_def_property(srna, "drag_threshold", PROP_INT, PROP_PIXEL); - RNA_def_property_int_sdna(prop, NULL, "dragthreshold"); - RNA_def_property_range(prop, 3, 40); - RNA_def_property_ui_text(prop, "Drag Threshold", - "Amount of pixels you have to drag before dragging UI items happens"); - - prop = RNA_def_property(srna, "tweak_threshold", PROP_INT, PROP_PIXEL); RNA_def_property_int_sdna(prop, NULL, "tweak_threshold"); RNA_def_property_range(prop, 3, 1024); - RNA_def_property_ui_text(prop, "Tweak Threshold", - "Number of pixels you have to drag before tweak event is triggered"); + RNA_def_property_ui_text(prop, "Drag Threshold", + "Number of pixels you have to drag before a tweak/drag event is triggered " + "(otherwise click events are detected)"); /* tablet pressure curve */ prop = RNA_def_property(srna, "pressure_threshold_max", PROP_FLOAT, PROP_FACTOR); |