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>2022-09-16 12:16:19 +0300
committerAntonio Vazquez <blendergit@gmail.com>2022-09-17 13:30:13 +0300
commitdd0ef7488705c2b59cccbf4af99858360a8b4c92 (patch)
tree8d1c52dba21fa20f823a6d41dfb4729e6a5f3d52 /source/blender/editors/gpencil/gpencil_fill.c
parent172b0ebe6adf8f97ba6ac56df06b103acaa0d3a9 (diff)
GPencil: Hide the help Circles for gaps when gap is closed
To avoid too much noise, the help circles are only visible if the the gap is still open. When the gap is closed, the circles are hidden. Hiding the circles makes it easier to focus on what is problematic. instead, to see many circles that are already resolved.
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_fill.c')
-rw-r--r--source/blender/editors/gpencil/gpencil_fill.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 809ddadd92d..d601ba142a1 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -549,14 +549,17 @@ static void gpencil_draw_basic_stroke(tGPDfill *tgpf,
}
if (is_help && tgpf->is_render) {
- /* Help strokes are for display only and shouldn't render */
+ /* Help strokes are for display only and shouldn't render. */
return;
}
else if (is_help) {
/* Color help strokes that won't affect fill or render separately from
- * extended strokes, as they will affect them */
+ * extended strokes, as they will affect them. */
copy_v4_v4(col, help_col);
- col[3] = (gps->flag & GP_STROKE_TAG) ? 0.5f : 0.1f;
+
+ /* If there is contact, hide the circles to avoid noise and keep the focus
+ * in the pending gaps. */
+ col[3] = (gps->flag & GP_STROKE_TAG) ? 0.0f : 0.5f;
}
else if ((is_extend) && (!tgpf->is_render)) {
copy_v4_v4(col, extend_col);