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.
This commit is contained in:
William Reynish 2020-03-09 23:23:06 +01:00
parent 9c5522f7c8
commit fbe81db29a
Notes: blender-bot 2023-02-14 10:09:24 +01:00
Referenced by issue #74606, Fill messing up when clicking outside of it. ...*Anywhere* outside of it.
1 changed files with 10 additions and 2 deletions

View File

@ -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