Tool System: loop cut, confirm on release

When accessed as a tool it felt awkward to click twice to execute.
This commit is contained in:
Campbell Barton
2018-08-22 14:19:55 +10:00
parent f6778ea63a
commit cf038bcb15
2 changed files with 17 additions and 6 deletions

View File

@@ -689,7 +689,11 @@ class _defs_edit_mesh:
icon="ops.mesh.loopcut_slide",
widget="VIEW3D_GGT_mesh_preselect_edgering",
keymap=(
("mesh.loopcut_slide", dict(), dict(type='ACTIONMOUSE', value='PRESS')),
(
"mesh.loopcut_slide",
dict(TRANSFORM_OT_edge_slide=dict(release_confirm=True)),
dict(type='ACTIONMOUSE', value='PRESS'),
),
),
draw_settings=draw_settings,
)