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:
authorAntonio Vazquez <blendergit@gmail.com>2020-03-15 21:40:21 +0300
committerAntonio Vazquez <blendergit@gmail.com>2020-03-15 21:40:21 +0300
commit7a7b392b5422eeb5030f9b8c5504edc085f49892 (patch)
tree5e31fb46cc3cae4ab4aa03897865b9f970e89f32 /source/blender/editors/gpencil/gpencil_select.c
parent22925d0dd31e75feefde792da55a1fd1b77f53f2 (diff)
GPencil: Reduce factor to 5 in previous commit
10 decimals is too high
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_select.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_select.c8
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);
}