[Bf-blender-cvs] [7a7b392b542] master: GPencil: Reduce factor to 5 in previous commit
Antonio Vazquez
noreply at git.blender.org
Sun Mar 15 19:40:28 CET 2020
Commit: 7a7b392b5422eeb5030f9b8c5504edc085f49892
Author: Antonio Vazquez
Date: Sun Mar 15 19:40:21 2020 +0100
Branches: master
https://developer.blender.org/rB7a7b392b5422eeb5030f9b8c5504edc085f49892
GPencil: Reduce factor to 5 in previous commit
10 decimals is too high
===================================================================
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list