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:
authorSergey Sharybin <sergey.vfx@gmail.com>2011-02-15 22:19:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2011-02-15 22:19:36 +0300
commite9ff1b98cb98562096b12e8e292d7ce55ac38f15 (patch)
tree490710aa99a3364163ea0fbb3614439f8e9a5a22 /source/blender/editors/sculpt_paint/paint_ops.c
parentc461a7ea4df3f69722240a1ecc5f7501ce2c8611 (diff)
- Do not use old anchor toggling operator. It used to set brush flags to
unawaliable state. - Also changed dynamic space bar menu, so it now also wouldn't allow to set brush stroke flags to unavaliable state. Also tried to remove use_anchor, use_space, use_restore_mesh and use_airbrush, so user would be unable to set flags to unavaliable state, but it was quite difficult for non-sculpt paint modes. They don't support all of stroke methods, so brush.stroke_method can't be used for them. Keep this area unchanged for now.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_ops.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c
index 6118b28cc7c..35111afb430 100644
--- a/source/blender/editors/sculpt_paint/paint_ops.c
+++ b/source/blender/editors/sculpt_paint/paint_ops.c
@@ -338,8 +338,8 @@ void ED_keymap_paint(wmKeyConfig *keyconf)
ed_keymap_paint_brush_size(keymap, "tool_settings.sculpt.brush.size");
/* */
- kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", AKEY, KM_PRESS, 0, 0);
- RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.use_anchor");
+ kmi = WM_keymap_add_item(keymap, "WM_OT_context_menu_enum", AKEY, KM_PRESS, 0, 0);
+ RNA_string_set(kmi->ptr, "data_path", "tool_settings.sculpt.brush.stroke_method");
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");