[Bf-blender-cvs] [dd0ef748870] master: GPencil: Hide the help Circles for gaps when gap is closed

Antonio Vazquez noreply at git.blender.org
Sat Sep 17 12:41:19 CEST 2022


Commit: dd0ef7488705c2b59cccbf4af99858360a8b4c92
Author: Antonio Vazquez
Date:   Fri Sep 16 11:16:19 2022 +0200
Branches: master
https://developer.blender.org/rBdd0ef7488705c2b59cccbf4af99858360a8b4c92

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.

===================================================================

M	source/blender/editors/gpencil/gpencil_fill.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list