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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user