diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 21:11:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-14 21:11:10 +0300 |
commit | be680ae69bd17639108b9df285d276845d3f8d30 (patch) | |
tree | ac3561d61d3b1324ee1de890a7fa15e28c2e125a /source/blender | |
parent | 6d4d43c85ec2708ab470d35770257ca12fb79827 (diff) |
Mkey toggles mask while in vertex/texture/weight paint mode.
remove unused operator property
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 9 | ||||
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 715a41e6431..a901b27b38f 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -276,6 +276,9 @@ void ED_keymap_paint(wmKeyConfig *keyconf) ed_keymap_paint_brush_switch(keymap, "tool_settings.vertex_paint.active_brush_index"); ed_keymap_paint_brush_size(keymap, "tool_settings.vertex_paint.brush.size"); + kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", MKEY, KM_PRESS, 0, 0); /* mask toggle */ + RNA_string_set(kmi->ptr, "path", "vertex_paint_object.data.use_paint_mask"); + /* Weight Paint mode */ keymap= WM_keymap_find(keyconf, "Weight Paint", 0, 0); keymap->poll= weight_paint_poll; @@ -291,6 +294,9 @@ void ED_keymap_paint(wmKeyConfig *keyconf) ed_keymap_paint_brush_switch(keymap, "tool_settings.weight_paint.active_brush_index"); ed_keymap_paint_brush_size(keymap, "tool_settings.weight_paint.brush.size"); + kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", MKEY, KM_PRESS, 0, 0); /* mask toggle */ + RNA_string_set(kmi->ptr, "path", "weight_paint_object.data.use_paint_mask"); + /* Image/Texture Paint mode */ keymap= WM_keymap_find(keyconf, "Image Paint", 0, 0); keymap->poll= image_texture_paint_poll; @@ -305,6 +311,9 @@ void ED_keymap_paint(wmKeyConfig *keyconf) ed_keymap_paint_brush_switch(keymap, "tool_settings.image_paint.active_brush_index"); ed_keymap_paint_brush_size(keymap, "tool_settings.image_paint.brush.size"); + kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", MKEY, KM_PRESS, 0, 0); /* mask toggle */ + RNA_string_set(kmi->ptr, "path", "texture_paint_object.data.use_paint_mask"); + /* face-mask mode */ keymap= WM_keymap_find(keyconf, "Face Mask", 0, 0); keymap->poll= facemask_paint_poll; diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index cddfad19fa7..52a71352768 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -1700,8 +1700,6 @@ void PAINT_OT_weight_set(wmOperatorType *ot) /* flags */ ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO; - - RNA_def_boolean(ot->srna, "extend", 0, "Extend", "Extend selection instead of deselecting everything first."); } /* ************ set / clear vertex paint mode ********** */ |