GP: Added keymaps for Sculpt select
authorAntonioya <blendergit@gmail.com>
Fri, 14 Dec 2018 18:13:53 +0000 (19:13 +0100)
committerAntonioya <blendergit@gmail.com>
Fri, 14 Dec 2018 18:13:53 +0000 (19:13 +0100)
Still T58986 not fixed.

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

index da5f3870e240e1d1df2ed12fe8e831752d91d587..72b3e166cc1fad1c5869008b8c9b898feb2c4ca2 100644 (file)
@@ -5779,6 +5779,42 @@ def km_3d_view_tool_edit_gpencil_to_sphere(params):
     )
 
 
     )
 
 
+def km_3d_view_tool_sculpt_gpencil_select(params):
+    return (
+        "3D View Tool: Sculpt Gpencil, Select",
+        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+        {"items": _template_items_tool_select(params, "gpencil.select", "view3d.cursor3d")},
+    )
+
+
+def km_3d_view_tool_sculpt_gpencil_select_box(params):
+    return (
+        "3D View Tool: Sculpt Gpencil, Select Box",
+        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+        {"items": _template_items_tool_select_actions("gpencil.select_box", type=params.tool_tweak, value='ANY')},
+    )
+
+
+def km_3d_view_tool_sculpt_gpencil_select_circle(params):
+    return (
+        "3D View Tool: Sculpt Gpencil, Select Circle",
+        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+        {"items": [
+            ("gpencil.select_circle", {"type": params.tool_tweak, "value": 'ANY'}, None),
+            ("gpencil.select_circle", {"type": params.tool_mouse, "value": 'PRESS', "ctrl": True},
+             {"properties": [("deselect", True)]}),
+        ]},
+    )
+
+
+def km_3d_view_tool_sculpt_gpencil_select_lasso(params):
+    return (
+        "3D View Tool: Sculpt Gpencil, Select Lasso",
+        {"space_type": 'VIEW_3D', "region_type": 'WINDOW'},
+        {"items": _template_items_tool_select_actions("gpencil.select_lasso", type=params.tool_tweak, value='ANY')},
+    )
+
+
 # ------------------------------------------------------------------------------
 # Full Configuration
 
 # ------------------------------------------------------------------------------
 # Full Configuration
 
@@ -5990,6 +6026,10 @@ def generate_keymaps(params=None):
         km_3d_view_tool_edit_gpencil_bend(params),
         km_3d_view_tool_edit_gpencil_shear(params),
         km_3d_view_tool_edit_gpencil_to_sphere(params),
         km_3d_view_tool_edit_gpencil_bend(params),
         km_3d_view_tool_edit_gpencil_shear(params),
         km_3d_view_tool_edit_gpencil_to_sphere(params),
+        km_3d_view_tool_sculpt_gpencil_select(params),
+        km_3d_view_tool_sculpt_gpencil_select_box(params),
+        km_3d_view_tool_sculpt_gpencil_select_circle(params),
+        km_3d_view_tool_sculpt_gpencil_select_lasso(params),
     ]
 
 # ------------------------------------------------------------------------------
     ]
 
 # ------------------------------------------------------------------------------