2.5 Paint:
[blender.git] / source / blender / editors / space_buttons / buttons_context.c
index ef61299ef7006d6ea11259d16a2576011998af43..318e0b0f5587d0c6150b5406c5b45c744468394f 100644 (file)
@@ -326,9 +326,9 @@ static int buttons_context_path_brush(const bContext *C, ButsContextPath *path)
                        if(obact->mode & OB_MODE_SCULPT)
                                paint_brush(&ts->sculpt->paint);
                        else if(obact->mode & OB_MODE_VERTEX_PAINT)
                        if(obact->mode & OB_MODE_SCULPT)
                                paint_brush(&ts->sculpt->paint);
                        else if(obact->mode & OB_MODE_VERTEX_PAINT)
-                               br= ts->vpaint->brush;
+                               paint_brush(&ts->vpaint->paint);
                        else if(obact->mode & OB_MODE_WEIGHT_PAINT)
                        else if(obact->mode & OB_MODE_WEIGHT_PAINT)
-                               br= ts->wpaint->brush;
+                               paint_brush(&ts->wpaint->paint);
                        else if(obact->mode & OB_MODE_TEXTURE_PAINT)
                                br= ts->imapaint.brush;
                }
                        else if(obact->mode & OB_MODE_TEXTURE_PAINT)
                                br= ts->imapaint.brush;
                }