GPencil: Fix unreported wrong fill vertex color in Outline

The Fill vertex color was assigned to the wrong stroke. It needs to be
set in the perimeter stroke, not in the original one.
This commit is contained in:
2023-01-10 16:13:37 +01:00
parent 66af16571d
commit 09a5443f20

View File

@@ -963,7 +963,7 @@ static bGPDstroke *gpencil_stroke_to_outline(tGPsdata *p, bGPDstroke *gps)
/* Set pressure constant. */
gps_perimeter->thickness = max_ii((int)outline_thickness, 1);
/* Apply Fill Vertex Color data. */
ED_gpencil_fill_vertex_color_set(p->scene->toolsettings, brush, gps);
ED_gpencil_fill_vertex_color_set(p->scene->toolsettings, brush, gps_perimeter);
bGPDspoint *pt;
for (int i = 0; i < gps_perimeter->totpoints; i++) {