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.
This commit is contained in:
Antonio Vazquez 2020-12-05 13:54:43 +01:00
parent 8982a315b7
commit 237f9da4a0
Notes: blender-bot 2023-02-14 05:36:11 +01:00
Referenced by issue #83400, Grease Pencil - Onion Skin not showing
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}