Keymap: double click to close cut

Restore from 2.7x (lost when migrating to migrating keymap to Python).
This commit is contained in:
Campbell Barton 2019-05-07 10:16:45 +10:00
parent 619b9e9d81
commit bfef3bce1a
Notes: blender-bot 2023-02-14 06:17:17 +01:00
Referenced by issue #67983, when in edit mode Boolean modifiers dont show
Referenced by issue #64464, App crashes when navigating between UV Editor and Viewport and selecting via A or Alt-A or clicking.
Referenced by issue #64343, Blender 2.8 sudden crash when exporting FFmpeg video with audio codec
Referenced by issue #64351, crash on attempt to open a specific file
Referenced by issue #64251, Lasso tool performs selection only if the object's pivot (origin) is within selection area (object mode)
2 changed files with 2 additions and 1 deletions

View File

@ -4821,7 +4821,7 @@ def km_knife_tool_modal_map(_params):
items.extend([
("CANCEL", {"type": 'ESC', "value": 'PRESS', "any": True}, None),
("PANNING", {"type": 'MIDDLEMOUSE', "value": 'ANY', "any": True}, None),
("CANCEL", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK', "any": True}, None),
("ADD_CUT_CLOSED", {"type": 'LEFTMOUSE', "value": 'DOUBLE_CLICK', "any": True}, None),
("ADD_CUT", {"type": 'LEFTMOUSE', "value": 'ANY', "any": True}, None),
("CANCEL", {"type": 'RIGHTMOUSE', "value": 'PRESS', "any": True}, None),
("CONFIRM", {"type": 'RET', "value": 'PRESS', "any": True}, None),

View File

@ -2811,6 +2811,7 @@ wmKeyMap *knifetool_modal_keymap(wmKeyConfig *keyconf)
{KNF_MODAL_CUT_THROUGH_TOGGLE, "CUT_THROUGH_TOGGLE", 0, "Toggle Cut Through", ""},
{KNF_MODAL_NEW_CUT, "NEW_CUT", 0, "End Current Cut", ""},
{KNF_MODAL_ADD_CUT, "ADD_CUT", 0, "Add Cut", ""},
{KNF_MODAL_ADD_CUT_CLOSED, "ADD_CUT_CLOSED", 0, "Add Cut Closed", ""},
{KNF_MODAL_PANNING, "PANNING", 0, "Panning", ""},
{0, NULL, 0, NULL, NULL},
};