Commit: 310e7eee6fc39f2415f623eb9b65a13152375279
Author: Antonioya
Date:   Thu Jan 3 11:29:33 2019 +0100
Branches: master
https://developer.blender.org/rB310e7eee6fc39f2415f623eb9b65a13152375279

GP: Include Lasso eraser in Fill and Primitives

This option allows to delete sections using Ctrl+Alt.

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

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 e8f21fb8b04..bb7b8480d9c 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -3098,6 +3098,8 @@ def km_grease_pencil_stroke_paint_fill(_params):
         # If press alternative key, the brush now it's for drawing lines
         ("gpencil.draw", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True},
          {"properties": [("mode", 'DRAW'), ("wait_for_input", False), 
("disable_straight", True), ("disable_fill", True)]}),
+        # Lasso select
+        ("gpencil.select_lasso", {"type": _params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
     ])
 
     return keymap
@@ -5654,6 +5656,8 @@ def km_3d_view_tool_paint_gpencil_line(params):
              {"properties": [("type", 'LINE'), ("wait_for_input", False)]}),
             ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', 
"alt": True},
              {"properties": [("type", 'LINE'), ("wait_for_input", False)]}),
+            # Lasso select
+            ("gpencil.select_lasso", {"type": params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
         ]},
     )
 
@@ -5669,6 +5673,8 @@ def km_3d_view_tool_paint_gpencil_box(params):
              {"properties": [("type", 'BOX'), ("wait_for_input", False)]}),
             ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', 
"alt": True},
              {"properties": [("type", 'BOX'), ("wait_for_input", False)]}),
+            # Lasso select
+            ("gpencil.select_lasso", {"type": params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
         ]},
     )
 
@@ -5684,6 +5690,8 @@ def km_3d_view_tool_paint_gpencil_circle(params):
              {"properties": [("type", 'CIRCLE'), ("wait_for_input", False)]}),
             ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', 
"alt": True},
              {"properties": [("type", 'CIRCLE'), ("wait_for_input", False)]}),
+            # Lasso select
+            ("gpencil.select_lasso", {"type": params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
         ]},
     )
 
@@ -5699,6 +5707,8 @@ def km_3d_view_tool_paint_gpencil_arc(params):
              {"properties": [("type", 'ARC'), ("wait_for_input", False)]}),
             ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', 
"alt": True},
              {"properties": [("type", 'ARC'), ("wait_for_input", False)]}),
+            # Lasso select
+            ("gpencil.select_lasso", {"type": params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
         ]},
     )
 
@@ -5709,6 +5719,8 @@ def km_3d_view_tool_paint_gpencil_curve(params):
         {"items": [
             ("gpencil.primitive", {"type": params.tool_tweak, "value": 'ANY'},
              {"properties": [("type", 'CURVE'), ("wait_for_input", False)]}),
+            # Lasso select
+            ("gpencil.select_lasso", {"type": params.action_tweak, "value": 
'ANY', "ctrl": True, "alt": True}, None),
         ]},
     )

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to