diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-09-28 21:23:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-09-28 21:23:49 +0300 |
commit | 6e9320d23719f81460498b03da61634f6d20b367 (patch) | |
tree | ea3e44a406cbf9fa2bad65cb53d5f6bd6d8982e7 | |
parent | 19955ef88ef8be8fc47d4d0d840c197fdc719259 (diff) |
GPencil: Disable Fill visual aids if use Inverted
When the inverted mode is used, the visual aids must
not be displayed.
-rw-r--r-- | source/blender/editors/gpencil/gpencil_fill.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |