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:
authorWilliam Reynish <billrey@me.com>2020-03-10 01:23:06 +0300
committerWilliam Reynish <billrey@me.com>2020-03-10 01:23:06 +0300
commitfbe81db29a28ee493655560c928cfa3ef9bd9d43 (patch)
tree16b20034626fe8a59146a44833dfcf840c3fb0d6 /release
parent9c5522f7c801cbb558b09e77dd4d56300680817f (diff)
Fix IC keymap after recent GP merge
Just a simple fix here for now to keep the keymap working. Will revisit these areas to make them fit in properly with the keymap.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
index 18acbb54b34..ec8f46724b5 100644
--- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
+++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py
@@ -2271,6 +2271,14 @@ def _grease_pencil_selection(params):
]
+def _grease_pencil_display():
+ return [
+ ("wm.context_toggle", {"type": 'Q', "value": 'PRESS', "shift": True},
+ {"properties": [("data_path", 'space_data.overlay.use_gpencil_edit_lines')]}),
+ ("wm.context_toggle", {"type": 'Q', "value": 'PRESS', "shift": True, "alt": True},
+ {"properties": [("data_path", 'space_data.overlay.use_gpencil_multiedit_line_only')]}),
+ ]
+
def km_grease_pencil_stroke_edit_mode(params):
items = []
@@ -2516,7 +2524,7 @@ def km_grease_pencil_stroke_sculpt_mode(params):
# Display
*_grease_pencil_display(),
# Context menu
- op_panel("VIEW3D_PT_gpencil_sculpt_context_menu", params.context_menu_event),
+ op_panel("VIEW3D_PT_gpencil_sculpt_context_menu", {"type": 'RIGHTMOUSE', "value": 'PRESS'}),
])
return keymap
@@ -2766,7 +2774,7 @@ def km_grease_pencil_stroke_vertex_mode(params):
op_tool("builtin.brush.Smear", {"type": 'K', "value": 'PRESS'}),
op_tool("builtin.brush.Replace", {"type": 'R', "value": 'PRESS'}),
# Vertex Paint context menu
- op_panel("VIEW3D_PT_gpencil_vertex_context_menu", params.context_menu_event),
+ op_panel("VIEW3D_PT_gpencil_vertex_context_menu", {"type": 'RIGHTMOUSE', "value": 'PRESS'}),
])
return keymap