[Bf-blender-cvs] [cd4e27a4a17] blender-v2.92-release: Industry Compat Keymap: Fix box/lasso selection for GP edit mode

William Reynish noreply at git.blender.org
Thu Jan 21 05:12:09 CET 2021


Commit: cd4e27a4a176a87ddba246d9ea9423cf5d6fd935
Author: William Reynish
Date:   Thu Jan 21 15:09:23 2021 +1100
Branches: blender-v2.92-release
https://developer.blender.org/rBcd4e27a4a176a87ddba246d9ea9423cf5d6fd935

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

===================================================================

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



More information about the Bf-blender-cvs mailing list