GPencil: Fix unreported Vertex Paint masking error
The masking was not working as expected and allowed to paint non selected strokes.
This commit is contained in:
parent
cdf564277c
commit
0373d1b09f
@ -845,6 +845,13 @@ static bool gpencil_vertexpaint_select_stroke(tGP_BrushVertexpaintData *gso,
|
||||
|
||||
bool saved = false;
|
||||
|
||||
/* Check stroke masking. */
|
||||
if (GPENCIL_ANY_VERTEX_MASK(gso->mask)) {
|
||||
if ((gps->flag & GP_STROKE_SELECT) == 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/* Check if the stroke collide with brush. */
|
||||
if (!ED_gpencil_stroke_check_collision(gsc, gps, gso->mval, radius, diff_mat)) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user