GPv3: Select mode in Edit Mode keymap

Keymap to switch between points and stroke edit mode with 1 and 2 key resp.

Pull Request: https://projects.blender.org/blender/blender/pulls/119049
This commit is contained in:
Pratik Borhade
2024-03-04 12:16:25 +01:00
committed by Falk David
parent ad8180c54c
commit 797b9f65e6
@@ -4671,6 +4671,11 @@ def km_grease_pencil_edit_mode(params):
# Isolate Layer
("grease_pencil.layer_isolate", {"type": 'NUMPAD_ASTERIX', "value": 'PRESS'}, None),
# Select mode
("grease_pencil.set_selection_mode", {"type": 'ONE', "value": 'PRESS'}, {"properties": [("mode", 'POINT')]}),
("grease_pencil.set_selection_mode", {"type": 'TWO', "value": 'PRESS'}, {"properties": [("mode", 'STROKE')]}),
])
return keymap