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:
parent
b5390a4aee
commit
b3f664f8fb
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue