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
This commit is contained in:
William Reynish 2021-01-21 15:09:23 +11:00 committed by Campbell Barton
parent d7cfee0b68
commit cd4e27a4a1
1 changed files with 1 additions and 1 deletions

View File

@ -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')]}),