GPencil: Hide Boundary strokes in Render
This change hides the boundary strokes used for closing filled areas in render mode (viewport and final render). Related to T80128
This commit is contained in:
parent
d4f7c7f4cc
commit
826bd46e66
Notes:
blender-bot
2023-02-14 08:07:50 +01:00
Referenced by issue #80141, Crash when adding a Volume Object or Quick Smoke Referenced by issue #80128, GPencil. Boundary strokes are visible in renders
|
@ -487,9 +487,10 @@ static void gpencil_stroke_cache_populate(bGPDlayer *gpl,
|
|||
|
||||
MaterialGPencilStyle *gp_style = BKE_gpencil_material_settings(iter->ob, gps->mat_nr + 1);
|
||||
|
||||
const bool is_render = iter->pd->is_render;
|
||||
bool hide_material = (gp_style->flag & GP_MATERIAL_HIDE) != 0;
|
||||
bool show_stroke = ((gp_style->flag & GP_MATERIAL_STROKE_SHOW) != 0) ||
|
||||
((gps->flag & GP_STROKE_NOFILL) != 0);
|
||||
(!is_render && ((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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue