* Polish preset did not enable tablet pressure for strength
[blender.git] / source / blender / editors / render / render_preview.c
index 236d40cc2ce34f821d4601374aff4519413ccb26..8cbcd0e940277c1b5f8f06fb0b1e5b5820c51c3f 100644 (file)
@@ -103,6 +103,7 @@ static int qtest() {return 0;}
 
 ImBuf* get_brush_icon(Brush *brush)
 {
+       /* Sculpt */
        extern char datatoc_blob_png;
        extern char datatoc_clay_png;
        extern char datatoc_crease_png;
@@ -120,6 +121,20 @@ ImBuf* get_brush_icon(Brush *brush)
        extern char datatoc_thumb_png;
        extern char datatoc_twist_png;
 
+       /* Paint */
+       extern char datatoc_add_png;
+       extern char datatoc_blur_png;
+       extern char datatoc_clone_png;
+       extern char datatoc_darken_png;
+       extern char datatoc_lighten_png;
+       extern char datatoc_mix_png;
+       extern char datatoc_multiply_png;
+       extern char datatoc_smear_png;
+       extern char datatoc_soften_png;
+       extern char datatoc_subtract_png;
+       extern char datatoc_texdraw_png;
+       extern char datatoc_vertexdraw_png;
+
        extern int datatoc_blob_png_size;
        extern int datatoc_clay_png_size;
        extern int datatoc_crease_png_size;
@@ -137,8 +152,22 @@ ImBuf* get_brush_icon(Brush *brush)
        extern int datatoc_thumb_png_size;
        extern int datatoc_twist_png_size;
 
+       extern int datatoc_add_png_size;
+       extern int datatoc_blur_png_size;
+       extern int datatoc_clone_png_size;
+       extern int datatoc_darken_png_size;
+       extern int datatoc_lighten_png_size;
+       extern int datatoc_mix_png_size;
+       extern int datatoc_multiply_png_size;
+       extern int datatoc_smear_png_size;
+       extern int datatoc_soften_png_size;
+       extern int datatoc_subtract_png_size;
+       extern int datatoc_texdraw_png_size;
+       extern int datatoc_vertexdraw_png_size;
+
        void *icon_data[]= {
                0,
+
                &datatoc_blob_png,
                &datatoc_clay_png,
                &datatoc_crease_png,
@@ -155,10 +184,24 @@ ImBuf* get_brush_icon(Brush *brush)
                &datatoc_snake_hook_png,
                &datatoc_thumb_png,
                &datatoc_twist_png,
+
+               &datatoc_add_png,
+               &datatoc_blur_png,
+               &datatoc_clone_png,
+               &datatoc_darken_png,
+               &datatoc_lighten_png,
+               &datatoc_mix_png,
+               &datatoc_multiply_png,
+               &datatoc_smear_png,
+               &datatoc_soften_png,
+               &datatoc_subtract_png,
+               &datatoc_texdraw_png,
+               &datatoc_vertexdraw_png,
        };
 
        size_t icon_size[]= {
                0,
+
                datatoc_blob_png_size,
                datatoc_clay_png_size,
                datatoc_crease_png_size,
@@ -175,11 +218,24 @@ ImBuf* get_brush_icon(Brush *brush)
                datatoc_snake_hook_png_size,
                datatoc_thumb_png_size,
                datatoc_twist_png_size,
+
+               datatoc_add_png_size,
+               datatoc_blur_png_size,
+               datatoc_clone_png_size,
+               datatoc_darken_png_size,
+               datatoc_lighten_png_size,
+               datatoc_mix_png_size,
+               datatoc_multiply_png_size,
+               datatoc_smear_png_size,
+               datatoc_soften_png_size,
+               datatoc_subtract_png_size,
+               datatoc_texdraw_png_size,
+               datatoc_vertexdraw_png_size,
        };
 
        static const int flags = IB_rect|IB_multilayer|IB_metadata;
 
-       static const int default_icon = BRUSH_ICON_DRAW;
+       static const int default_icon = BRUSH_ICON_SCULPTDRAW;
 
        char path[240];
        char *folder;