GPencil: Display Fill Boundary strokes with stroke color

This feature was removed during the refactor, but it's needed for this type of strokes to display the line using the stroke color without checking if the stroke is enabled or not in the material.

This color is used only for these special strokes.
This commit is contained in:
Antonio Vazquez 2020-08-13 20:14:23 +02:00
parent e691a3a9b7
commit ebf5ff8afb
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #80128, GPencil. Boundary strokes are visible in renders
1 changed files with 2 additions and 1 deletions

View File

@ -488,7 +488,8 @@ static void gpencil_stroke_cache_populate(bGPDlayer *gpl,
MaterialGPencilStyle *gp_style = BKE_gpencil_material_settings(iter->ob, gps->mat_nr + 1);
bool hide_material = (gp_style->flag & GP_MATERIAL_HIDE) != 0;
bool show_stroke = (gp_style->flag & GP_MATERIAL_STROKE_SHOW) != 0;
bool show_stroke = ((gp_style->flag & GP_MATERIAL_STROKE_SHOW) != 0) ||
((gps->flag & GP_STROKE_NOFILL) != 0);
bool show_fill = (gps->tot_triangles > 0) && ((gp_style->flag & GP_MATERIAL_FILL_SHOW) != 0) &&
(!iter->pd->simplify_fill) && ((gps->flag & GP_STROKE_NOFILL) == 0);