[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [50122] trunk/blender/source/blender/ editors/sculpt_paint/paint_ops.c: Fix #32309: missing shortcuts in sculpt mode Hide/Mask menu.

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Aug 22 16:27:09 CEST 2012


Revision: 50122
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=50122
Author:   blendix
Date:     2012-08-22 14:27:09 +0000 (Wed, 22 Aug 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c	2012-08-22 14:27:06 UTC (rev 50121)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_ops.c	2012-08-22 14:27:09 UTC (rev 50122)
@@ -624,7 +624,7 @@
 	
 	/* 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);




More information about the Bf-blender-cvs mailing list