[Bf-blender-cvs] [237f9da4a0b] master: Fix T83400: GPencil onion skin not visible when Edit Lines is enabled

Antonio Vazquez noreply at git.blender.org
Sat Dec 5 13:55:15 CET 2020


Commit: 237f9da4a0b397f22e356c08c6968f8d2a461a9c
Author: Antonio Vazquez
Date:   Sat Dec 5 13:54:43 2020 +0100
Branches: master
https://developer.blender.org/rB237f9da4a0b397f22e356c08c6968f8d2a461a9c

Fix T83400: GPencil onion skin not visible when Edit Lines is enabled

The Edit Lines flag was not checking if Onion was enabled. In 2D template this is disabled by default, but default template has enabled it.

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

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 368530fde05..388deec07bf 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -498,7 +498,7 @@ static void gpencil_stroke_cache_populate(bGPDlayer *gpl,
   bool hide_onion = gpl && gpf && gpf->runtime.onion_id != 0 &&
                     ((gp_style->flag & GP_MATERIAL_HIDE_ONIONSKIN) != 0);
 
-  if (hide_material || (!show_stroke && !show_fill) || only_lines || hide_onion) {
+  if (hide_material || (!show_stroke && !show_fill) || (only_lines && hide_onion) || hide_onion) {
     return;
   }



More information about the Bf-blender-cvs mailing list