Commit: fbe81db29a28ee493655560c928cfa3ef9bd9d43 Author: William Reynish Date: Mon Mar 9 23:23:06 2020 +0100 Branches: master https://developer.blender.org/rBfbe81db29a28ee493655560c928cfa3ef9bd9d43
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. =================================================================== M release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py =================================================================== 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 _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs