diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-02-18 19:21:12 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-02-18 19:21:21 +0300 |
commit | 62b8c2a66a379971f78c0ee0f6197fb7c3fb5a2b (patch) | |
tree | bae942b52da2c8049d35f29bb240a4602448a6dd /source/blender | |
parent | 81ac0bf759d34e7de921784250d82540cb218718 (diff) |
GPencil: Add missing edit lines in Multiframe mode
When edit using Onion skin, the edit line was missing.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/engines/overlay/overlay_gpencil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/draw/engines/overlay/overlay_gpencil.c b/source/blender/draw/engines/overlay/overlay_gpencil.c index 19af3ae7e5d..891142fe0a2 100644 --- a/source/blender/draw/engines/overlay/overlay_gpencil.c +++ b/source/blender/draw/engines/overlay/overlay_gpencil.c @@ -85,7 +85,9 @@ void OVERLAY_edit_gpencil_cache_init(OVERLAY_Data *vedata) (GPENCIL_VERTEX_MODE(gpd) && !use_vertex_mask)); const bool do_multiedit = GPENCIL_MULTIEDIT_SESSIONS_ON(gpd); - const bool show_multi_edit_lines = (v3d->gp_flag & V3D_GP_SHOW_MULTIEDIT_LINES) != 0; + const bool show_multi_edit_lines = (do_multiedit) && + ((v3d->gp_flag & (V3D_GP_SHOW_MULTIEDIT_LINES | + V3D_GP_SHOW_EDIT_LINES)) != 0); const bool show_lines = (v3d->gp_flag & V3D_GP_SHOW_EDIT_LINES) || show_multi_edit_lines; |