Fix for bug #4461:

- In weight paint mode, with the vertex paint flag also set, vertex
  paint would get the mouse events instead of weight paint.
This commit is contained in:
2006-06-25 09:40:01 +00:00
parent 93f2eb4487
commit 68a5ac9f15

View File

@@ -1004,12 +1004,13 @@ static void winqreadview3dspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
case LEFTMOUSE:
if ((G.obedit) || !(G.f&(G_VERTEXPAINT|G_WEIGHTPAINT|G_TEXTUREPAINT))) {
mouse_cursor();
} else if (G.f & G_VERTEXPAINT) {
vertex_paint();
}
else if (G.f & G_WEIGHTPAINT){
weight_paint();
}
else if (G.f & G_VERTEXPAINT) {
vertex_paint();
}
else if (G.f & G_TEXTUREPAINT) {
face_draw();
}