Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-22 18:27:09 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-08-22 18:27:09 +0400
commit7f9467098e349b69d8f14114aaf22f0df0d1daa9 (patch)
treeb23b50b316e1857243c8e4ea00571e858bfffec7
parentd3f1222d3809d7a893de4cee541e24b3636563c5 (diff)
Fix #32309: missing shortcuts in sculpt mode Hide/Mask menu. Keymap poll was too
strict, only has to check if we are in sculpt mode, not if the mouse is in the main region too.
-rw-r--r--source/blender/editors/sculpt_paint/paint_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c
index 560174e73ae..104f727c603 100644
--- a/source/blender/editors/sculpt_paint/paint_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_ops.c
@@ -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);