diff options
author | Charlie Jolly <mistajolly@gmail.com> | 2018-12-03 17:55:57 +0300 |
---|---|---|
committer | Charlie Jolly <mistajolly@gmail.com> | 2018-12-04 01:11:38 +0300 |
commit | 2c19c9b2f646e2b28e3ad399380fe27971fe23d8 (patch) | |
tree | deeb652385f3ce82e396853b70575c87e13f73bd /release/scripts/presets/keyconfig/keymap_data/blender_default.py | |
parent | f0432e37ab06831167cf84c589fad7d5a28d54ef (diff) |
GP: Draw Mode: Add Arc Primitive
This adds an elliptical arc primitive.
Press CKEY for toggling closed/open arc.
Press FKEY key for flipping arc.
Additional changes to gpencil primitives.
Increases default edges of circle to 64.
Keymap changes to allow primitives to be drawn with Shift or Alt key.
Allow Plus/Minus key to adjust number of edges.
Missing: Toolbar icon
Differential Revision: https://developer.blender.org/D4024
Diffstat (limited to 'release/scripts/presets/keyconfig/keymap_data/blender_default.py')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index ddcd4242c4a..09fdd202932 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -5646,6 +5646,10 @@ def km_3d_view_tool_gpencil_paint_line(params): {"items": [ ("gpencil.primitive", {"type": params.tool_tweak, "value": 'ANY'}, {"properties": [("type", 'LINE'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, + {"properties": [("type", 'LINE'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True}, + {"properties": [("type", 'LINE'), ("wait_for_input", False)]}), ]}, ) @@ -5657,6 +5661,10 @@ def km_3d_view_tool_gpencil_paint_box(params): {"items": [ ("gpencil.primitive", {"type": params.tool_tweak, "value": 'ANY'}, {"properties": [("type", 'BOX'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, + {"properties": [("type", 'BOX'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True}, + {"properties": [("type", 'BOX'), ("wait_for_input", False)]}), ]}, ) @@ -5668,6 +5676,25 @@ def km_3d_view_tool_gpencil_paint_circle(params): {"items": [ ("gpencil.primitive", {"type": params.tool_tweak, "value": 'ANY'}, {"properties": [("type", 'CIRCLE'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, + {"properties": [("type", 'CIRCLE'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True}, + {"properties": [("type", 'CIRCLE'), ("wait_for_input", False)]}), + ]}, + ) + + +def km_3d_view_tool_gpencil_paint_arc(params): + return ( + "3D View Tool: Gpencil Paint, Arc", + {"space_type": 'VIEW_3D', "region_type": 'WINDOW'}, + {"items": [ + ("gpencil.primitive", {"type": params.tool_tweak, "value": 'ANY'}, + {"properties": [("type", 'ARC'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, + {"properties": [("type", 'ARC'), ("wait_for_input", False)]}), + ("gpencil.primitive", {"type": 'LEFTMOUSE', "value": 'PRESS', "alt": True}, + {"properties": [("type", 'ARC'), ("wait_for_input", False)]}), ]}, ) @@ -5944,6 +5971,7 @@ def generate_keymaps(params=None): km_3d_view_tool_gpencil_paint_line(params), km_3d_view_tool_gpencil_paint_box(params), km_3d_view_tool_gpencil_paint_circle(params), + km_3d_view_tool_gpencil_paint_arc(params), km_3d_view_tool_gpencil_edit_select(params), km_3d_view_tool_gpencil_edit_select_box(params), km_3d_view_tool_gpencil_edit_select_circle(params), |