From cd4e27a4a176a87ddba246d9ea9423cf5d6fd935 Mon Sep 17 00:00:00 2001 From: William Reynish Date: Thu, 21 Jan 2021 15:09:23 +1100 Subject: [PATCH] Industry Compat Keymap: Fix box/lasso selection for GP edit mode There was a bug which which prevented box and lasso select to work correctly in GP Edit Mode. It would select a nearby vertex before the box selection. This patch fixes it so it works with a click event, like the default keymap, which fixes box and lasso selection. Ref D10119 --- .../presets/keyconfig/keymap_data/industry_compatible_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3133b184f98..1a1fbc12754 100644 --- a/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py +++ b/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py @@ -2277,7 +2277,7 @@ def km_grease_pencil(_params): def _grease_pencil_selection(params): return [ - ("gpencil.select", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, + ("gpencil.select", {"type": 'LEFTMOUSE', "value": 'CLICK', "shift": True}, {"properties": [("extend", True), ("toggle", True)]}), # Select all ("gpencil.select_all", {"type": 'A', "value": 'PRESS', "ctrl": True}, {"properties": [("action", 'SELECT')]}),