[Bf-blender-cvs] [7ce7bf08565] greasepencil-refactor: GPencil: Hide other frames in multiedit if Overlay main switch is OFF

Antonio Vazquez noreply at git.blender.org
Mon Feb 3 19:16:25 CET 2020


Commit: 7ce7bf085657fd21ce5e2f8b4c60e4e66cf842f1
Author: Antonio Vazquez
Date:   Mon Feb 3 19:16:18 2020 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rB7ce7bf085657fd21ce5e2f8b4c60e4e66cf842f1

GPencil: Hide other frames in multiedit if Overlay main switch is OFF

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index c4b7fe5391a..be2ac9cb818 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -126,7 +126,7 @@ void GPENCIL_engine_init(void *ved)
 
     /* For non active frame, use only lines in multiedit mode. */
     const bool overlays_on = (v3d->flag2 & V3D_HIDE_OVERLAYS) == 0;
-    stl->pd->use_multiedit_lines_only = overlays_on &&
+    stl->pd->use_multiedit_lines_only = !overlays_on ||
                                         (v3d->gp_flag & V3D_GP_SHOW_MULTIEDIT_LINES) != 0;
   }
   else if (stl->pd->is_render) {



More information about the Bf-blender-cvs mailing list