Use enum menu for angle source in sculpt mode -- rake toggling wasn't
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 2 May 2011 08:04:05 +0000 (08:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 2 May 2011 08:04:05 +0000 (08:04 +0000)
working due to it's 3 possible sources.

source/blender/editors/sculpt_paint/paint_ops.c

index 577e9739537075d6f2bccb9de35081ac7526d67b..9a1de939067b2ff42be25f1f28fc320e2421b27d 100644 (file)
@@ -514,8 +514,8 @@ void ED_keymap_paint(wmKeyConfig *keyconf)
        kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", SKEY, KM_PRESS, KM_SHIFT, 0);
        RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.use_smooth_stroke");
 
-       kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", RKEY, KM_PRESS, 0, 0);
-       RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.use_rake");
+       kmi = WM_keymap_add_item(keymap, "WM_OT_context_menu_enum", RKEY, KM_PRESS, 0, 0);
+       RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.texture_angle_source_random");
 
        /* Vertex Paint mode */
        keymap= WM_keymap_find(keyconf, "Vertex Paint", 0, 0);