Sculpt Branch:
[blender.git] / source / blender / editors / sculpt_paint / paint_ops.c
index 92812c2ab0859b34386642ef67ffae4e03560d17..ae694ed863ba576cc149419df6c736ed3d87513f 100644 (file)
@@ -179,6 +179,7 @@ static void ed_keymap_paint_brush_switch(wmKeyMap *keymap, const char *path)
 void ED_keymap_paint(wmKeyConfig *keyconf)
 {
        wmKeyMap *keymap;
+       int i;
        
        /* Sculpt mode */
        keymap= WM_keymap_find(keyconf, "Sculpt", 0, 0);
@@ -193,6 +194,9 @@ void ED_keymap_paint(wmKeyConfig *keyconf)
 
        ed_keymap_paint_brush_switch(keymap, "tool_settings.sculpt.active_brush_index");
 
+       for(i=1; i<=5; i++)
+               RNA_int_set(WM_keymap_add_item(keymap, "OBJECT_OT_subdivision_set", ZEROKEY+i, KM_PRESS, KM_CTRL, 0)->ptr, "level", i);
+
        /* Vertex Paint mode */
        keymap= WM_keymap_find(keyconf, "Vertex Paint", 0, 0);
        keymap->poll= vertex_paint_poll;