[Bf-blender-cvs] [3b9464dc6b5] temp-T97352-3d-texturing-seam-bleeding-b2: GPencil: Hide the help Circles for gaps when gap is closed

Antonio Vazquez noreply at git.blender.org
Tue Sep 20 10:32:11 CEST 2022


Commit: 3b9464dc6b5f677ebbb42b0d57415242b119628c
Author: Antonio Vazquez
Date:   Fri Sep 16 11:16:19 2022 +0200
Branches: temp-T97352-3d-texturing-seam-bleeding-b2
https://developer.blender.org/rB3b9464dc6b5f677ebbb42b0d57415242b119628c

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