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:
authorCampbell Barton <ideasman42@gmail.com>2019-02-21 07:43:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-21 07:43:39 +0300
commite644da1f8e3522205b529bc7b397096db2e9e069 (patch)
tree7afdff199ca2f80b743f37211a52c090233b6150 /release/scripts/presets
parenta0881a4e9409c5bbc4a9eb2babcaaff03a8b26c7 (diff)
Keymap: add context menus for paint modes
These are place-holders with only a few items in each, as with the rest of the context menus they need to be populated & organized. Weight Paint 'weight' shortcut has been changed from W to Ctrl-F, to co-exist w/ the context menu shortcut.
Diffstat (limited to 'release/scripts/presets')
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 4afd74e27ee..df7992adc0f 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -3565,7 +3565,7 @@ def _template_paint_radial_control(paint, rotation=False, secondary_rotation=Fal
return items
-def km_image_paint(_params):
+def km_image_paint(params):
items = []
keymap = (
"Image Paint",
@@ -3605,12 +3605,13 @@ def km_image_paint(_params):
op_menu("VIEW3D_MT_angle_control", {"type": 'R', "value": 'PRESS'}),
("wm.context_menu_enum", {"type": 'E', "value": 'PRESS'},
{"properties": [("data_path", 'tool_settings.image_paint.brush.stroke_method')]}),
+ op_menu("VIEW3D_MT_paint_texture_specials", params.context_menu_event),
])
return keymap
-def km_vertex_paint(_params):
+def km_vertex_paint(params):
items = []
keymap = (
"Vertex Paint",
@@ -3647,6 +3648,7 @@ def km_vertex_paint(_params):
op_menu("VIEW3D_MT_angle_control", {"type": 'R', "value": 'PRESS'}),
("wm.context_menu_enum", {"type": 'E', "value": 'PRESS'},
{"properties": [("data_path", 'tool_settings.vertex_paint.brush.stroke_method')]}),
+ op_menu("VIEW3D_MT_paint_vertex_specials", params.context_menu_event),
])
return keymap
@@ -3674,7 +3676,7 @@ def km_weight_paint(params):
("brush.scale_size", {"type": 'RIGHT_BRACKET', "value": 'PRESS'},
{"properties": [("scalar", 1.0 / 0.9)]}),
*_template_paint_radial_control("weight_paint"),
- ("wm.radial_control", {"type": 'W', "value": 'PRESS'},
+ ("wm.radial_control", {"type": 'F', "value": 'PRESS', "ctrl": True},
radial_control_properties("weight_paint", 'weight', 'use_unified_weight')),
("wm.context_menu_enum", {"type": 'E', "value": 'PRESS'},
{"properties": [("data_path", 'tool_settings.vertex_paint.brush.stroke_method')]}),
@@ -3684,6 +3686,7 @@ def km_weight_paint(params):
{"properties": [("data_path", 'weight_paint_object.data.use_paint_mask_vertex')]}),
("wm.context_toggle", {"type": 'S', "value": 'PRESS', "shift": True},
{"properties": [("data_path", 'tool_settings.weight_paint.brush.use_smooth_stroke')]}),
+ op_menu("VIEW3D_MT_paint_weight_specials", params.context_menu_event),
])
if params.select_mouse == 'LEFTMOUSE':
@@ -3695,7 +3698,7 @@ def km_weight_paint(params):
return keymap
-def km_sculpt(_params):
+def km_sculpt(params):
items = []
keymap = (
"Sculpt",
@@ -3783,6 +3786,7 @@ def km_sculpt(_params):
("wm.context_toggle", {"type": 'S', "value": 'PRESS', "shift": True},
{"properties": [("data_path", 'tool_settings.sculpt.brush.use_smooth_stroke')]}),
op_menu("VIEW3D_MT_angle_control", {"type": 'R', "value": 'PRESS'}),
+ op_menu("VIEW3D_MT_sculpt_specials", params.context_menu_event),
])
return keymap