Fix #32309: missing shortcuts in sculpt mode Hide/Mask menu. Keymap poll was too
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 22 Aug 2012 14:27:09 +0000 (14:27 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 22 Aug 2012 14:27:09 +0000 (14:27 +0000)
strict, only has to check if we are in sculpt mode, not if the mouse is in the
main region too.

source/blender/editors/sculpt_paint/paint_ops.c

index 560174e73ae238c34cb400de74cea28290f54335..104f727c60388cf1b15d3a37a1d3ce9705858751 100644 (file)
@@ -624,7 +624,7 @@ void ED_keymap_paint(wmKeyConfig *keyconf)
        
        /* Sculpt mode */
        keymap = WM_keymap_find(keyconf, "Sculpt", 0, 0);
-       keymap->poll = sculpt_poll;
+       keymap->poll = sculpt_mode_poll;
 
        RNA_enum_set(WM_keymap_add_item(keymap, "SCULPT_OT_brush_stroke", LEFTMOUSE, KM_PRESS, 0,        0)->ptr, "mode", BRUSH_STROKE_NORMAL);
        RNA_enum_set(WM_keymap_add_item(keymap, "SCULPT_OT_brush_stroke", LEFTMOUSE, KM_PRESS, KM_CTRL,  0)->ptr, "mode", BRUSH_STROKE_INVERT);