only paint onto selected faces when painting mask is enabled. (request from Carsten)

This commit is contained in:
Campbell Barton
2008-10-02 01:12:37 +00:00
parent 3ec4f674d0
commit 3659b390bf

View File

@@ -720,7 +720,9 @@ static void imapaint_paint_stroke(ImagePaintState *s, BrushPainter *painter, sho
if (texpaint) {
/* pick new face and image */
if (facesel_face_pick(s->me, mval, &newfaceindex, 0)) {
if ( facesel_face_pick(s->me, mval, &newfaceindex, 0) &&
((G.f & G_FACESELECT)==0 || (s->me->mface+newfaceindex)->flag & ME_FACE_SEL)
) {
ImBuf *ibuf;
newimage = (Image*)((s->me->mtface+newfaceindex)->tpage);