diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-03-15 21:40:21 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-03-15 21:40:21 +0300 |
commit | 7a7b392b5422eeb5030f9b8c5504edc085f49892 (patch) | |
tree | 5e31fb46cc3cae4ab4aa03897865b9f970e89f32 /source | |
parent | 22925d0dd31e75feefde792da55a1fd1b77f53f2 (diff) |
GPencil: Reduce factor to 5 in previous commit
10 decimals is too high
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/gpencil/gpencil_select.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c index e5813611915..133891cda13 100644 --- a/source/blender/editors/gpencil/gpencil_select.c +++ b/source/blender/editors/gpencil/gpencil_select.c @@ -1661,7 +1661,7 @@ static void gpencil_selected_hue_table(bContext *C, const int threshold, GHash *hue_table) { - const float range = pow(10, 10 - threshold); + const float range = pow(10, 5 - threshold); float hsv[3]; /* Extract all colors. */ @@ -1729,7 +1729,7 @@ static int gpencil_select_vertex_color_exec(bContext *C, wmOperator *op) const float threshold = RNA_int_get(op->ptr, "threshold"); const int selectmode = gpencil_select_mode_from_vertex(ts->gpencil_selectmode_vertex); bGPdata *gpd = (bGPdata *)ob->data; - const float range = pow(10, 10 - threshold); + const float range = pow(10, 5 - threshold); bool done = false; @@ -1823,11 +1823,11 @@ void GPENCIL_OT_select_vertex_color(wmOperatorType *ot) "threshold", 0, 0, - 10, + 5, "Threshold", "Tolerance of the selection. Higher values select a wider range of similar colors", 0, - 10); + 5); /* avoid re-using last var */ RNA_def_property_flag(prop, PROP_SKIP_SAVE); } |