1
1

Fix T98756: GPencil Set Vertex Color Attribute does not color unpainted

The operator set the color but the factor of the mix value was not updated and as the default value was 0, the color was not vivible and only worked when the stroke was previously painted.
This commit is contained in:
2022-06-10 15:25:56 +02:00
parent 9670c649d8
commit 9cad614ad5

View File

@@ -587,7 +587,7 @@ static int gpencil_vertexpaint_set_exec(bContext *C, wmOperator *op)
srgb_to_linearrgb_v4(color, color);
for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
if ((!any_selected) || (pt->flag & GP_SPOINT_SELECT)) {
copy_v3_v3(pt->vert_color, color);
copy_v4_v4(pt->vert_color, color);
}
}
}