[Bf-blender-cvs] [54a9649e263] master: Fix T70582: Gpencil crash when use Shift+Alt+LMB

Antonio Vazquez noreply at git.blender.org
Sun Oct 6 16:05:54 CEST 2019


Commit: 54a9649e26367a4d196791f2efe9db03bd22e685
Author: Antonio Vazquez
Date:   Sun Oct 6 16:05:42 2019 +0200
Branches: master
https://developer.blender.org/rB54a9649e26367a4d196791f2efe9db03bd22e685

Fix T70582: Gpencil crash when use Shift+Alt+LMB

This keymap was the old polygon mode for old grease pencil and now this have been replaced with Line tool. As this code was not ready for this keymap, the code gets out of control and fails. The solution is to remove this deprecated keymap.

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

M	release/scripts/presets/keyconfig/keymap_data/blender_default.py

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

diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 58e11a160b5..3fe9b8cce12 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -3170,9 +3170,6 @@ def km_grease_pencil_stroke_paint_draw_brush(params):
         # Draw - straight lines
         ("gpencil.draw", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
          {"properties": [("mode", 'DRAW_STRAIGHT'), ("wait_for_input", False)]}),
-        # Draw - poly lines
-        ("gpencil.draw", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True, "alt": True},
-         {"properties": [("mode", 'DRAW_POLY'), ("wait_for_input", False)]}),
         # Erase
         ("gpencil.draw", {"type": 'LEFTMOUSE', "value": 'PRESS', "ctrl": True},
          {"properties": [("mode", 'ERASER'), ("wait_for_input", False)]}),



More information about the Bf-blender-cvs mailing list