mask now draws in the image view, misc minor edits.
[blender.git] / source / blender / editors / sculpt_paint / paint_vertex.c
index 1b62ba8a7e0e46c72a1861d793d0757f8033362d..3c389f97b340cec2ebcb9f7f14e1844f3818d6a1 100644 (file)
@@ -1997,7 +1997,7 @@ static int set_wpaint(bContext *C, wmOperator *UNUSED(op))  /* toggle */
                if (wp == NULL)
                        wp = scene->toolsettings->wpaint = new_vpaint(1);
 
-               paint_init(&wp->paint, PAINT_CURSOR_WEIGHT_PAINT);
+               BKE_paint_init(&wp->paint, PAINT_CURSOR_WEIGHT_PAINT);
                paint_cursor_start(C, weight_paint_poll);
                
                mesh_octree_table(ob, NULL, NULL, 's');
@@ -2574,7 +2574,7 @@ static int set_vpaint(bContext *C, wmOperator *op)  /* toggle */
                
                paint_cursor_start(C, vertex_paint_poll);
 
-               paint_init(&vp->paint, PAINT_CURSOR_VERTEX_PAINT);
+               BKE_paint_init(&vp->paint, PAINT_CURSOR_VERTEX_PAINT);
        }
        
        if (me)