[Bf-blender-cvs] [6e9320d2371] master: GPencil: Disable Fill visual aids if use Inverted

Antonio Vazquez noreply at git.blender.org
Wed Sep 28 20:23:59 CEST 2022


Commit: 6e9320d23719f81460498b03da61634f6d20b367
Author: Antonio Vazquez
Date:   Wed Sep 28 20:23:49 2022 +0200
Branches: master
https://developer.blender.org/rB6e9320d23719f81460498b03da61634f6d20b367

GPencil: Disable Fill visual aids if use Inverted

When the inverted mode is used, the visual aids must
not be displayed.

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

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 5d2c4dda617..4fd96369b4f 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -2793,8 +2793,9 @@ static int gpencil_fill_modal(bContext *C, wmOperator *op, const wmEvent *event)
                            (!is_brush_inv && (event->modifier & KM_CTRL) != 0);
   const bool is_multiedit = (bool)GPENCIL_MULTIEDIT_SESSIONS_ON(tgpf->gpd);
   const bool extend_lines = (tgpf->fill_extend_fac > 0.0f);
-  const bool show_extend = (tgpf->flag & GP_BRUSH_FILL_SHOW_EXTENDLINES);
-  const bool help_lines = ((tgpf->flag & GP_BRUSH_FILL_SHOW_HELPLINES) || (show_extend));
+  const bool show_extend = ((tgpf->flag & GP_BRUSH_FILL_SHOW_EXTENDLINES) && !is_inverted);
+  const bool help_lines = (((tgpf->flag & GP_BRUSH_FILL_SHOW_HELPLINES) || show_extend) &&
+                           !is_inverted);
   int estate = OPERATOR_RUNNING_MODAL;
 
   switch (event->type) {



More information about the Bf-blender-cvs mailing list