Keymap: support key-activates-tools for shrink-fatten

This commit is contained in:
Campbell Barton 2021-10-18 18:42:35 +11:00
parent 3f4ba64ae3
commit 4f3f79c382
1 changed files with 3 additions and 1 deletions

View File

@ -5028,6 +5028,9 @@ def km_mesh(params):
("mesh.bevel", {"type": 'B', "value": 'PRESS', "ctrl": True},
{"properties": [("affect", 'EDGES')]}),
(op_tool_cycle, "builtin.bevel"), params),
op_tool_optional(
("transform.shrink_fatten", {"type": 'S', "value": 'PRESS', "alt": True}, None),
(op_tool_cycle, "builtin.shrink_fatten"), params),
("mesh.bevel", {"type": 'B', "value": 'PRESS', "shift": True, "ctrl": True},
{"properties": [("affect", 'VERTICES')]}),
# Selection modes.
@ -5092,7 +5095,6 @@ def km_mesh(params):
("mesh.rip_edge_move", {"type": 'D', "value": 'PRESS', "alt": True}, None),
op_menu("VIEW3D_MT_edit_mesh_merge", {"type": 'M', "value": 'PRESS'}),
op_menu("VIEW3D_MT_edit_mesh_split", {"type": 'M', "value": 'PRESS', "alt": True}),
("transform.shrink_fatten", {"type": 'S', "value": 'PRESS', "alt": True}, None),
("mesh.edge_face_add", {"type": 'F', "value": 'PRESS', "repeat": True}, None),
("mesh.duplicate_move", {"type": 'D', "value": 'PRESS', "shift": True}, None),
op_menu("VIEW3D_MT_mesh_add", {"type": 'A', "value": 'PRESS', "shift": True}),