GPencil: Fix unreported Vertex Color missing in Outline Draw

When drawing using the option `Outline` the result stroke
was not using the Vertex Color option and always was converted
using material.

Now the vertex color option is used.
This commit is contained in:
Antonio Vazquez 2023-01-09 12:40:33 +01:00
parent b5390a4aee
commit b3f664f8fb
1 changed files with 4 additions and 0 deletions

View File

@ -962,11 +962,15 @@ 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);
bGPDspoint *pt;
for (int i = 0; i < gps_perimeter->totpoints; i++) {
pt = &gps_perimeter->points[i];
pt->pressure = 1.0f;
/* Apply Point Vertex Color data. */
ED_gpencil_point_vertex_color_set(p->scene->toolsettings, brush, pt, NULL);
}
/* Remove original stroke. */