2.5 texture paint:
authorNicholas Bishop <nicholasbishop@gmail.com>
Thu, 20 Aug 2009 16:43:55 +0000 (16:43 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Thu, 20 Aug 2009 16:43:55 +0000 (16:43 +0000)
* Little bugfix, was passing an invalid pointer

source/blender/editors/sculpt_paint/paint_image.c

index 8a8041abbffe1cbf4a3914dfb3fe7647df433426..2dcd7a6494717ba4e4fa55007e575ec2a62f5c45 100644 (file)
@@ -5174,7 +5174,7 @@ static int texture_paint_toggle_exec(bContext *C, wmOperator *op)
                        me->mtface= CustomData_add_layer(&me->fdata, CD_MTFACE, CD_DEFAULT,
                                                         NULL, me->totface);
 
-               paint_init(&scene->toolsettings->imapaint.paint, NULL);
+               paint_init(&scene->toolsettings->imapaint.paint, PAINT_CURSOR_TEXTURE_PAINT);
 
                if(U.glreslimit != 0)
                        GPU_free_images();