Keymap: double click to close cut
authorCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 00:16:45 +0000 (10:16 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 7 May 2019 00:16:45 +0000 (10:16 +1000)
Restore from 2.7x (lost when migrating to migrating keymap to Python).

release/scripts/presets/keyconfig/keymap_data/blender_default.py
source/blender/editors/mesh/editmesh_knife.c

index 45c082f..376e27d 100644 (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),
index cc0c2f5..e45c15b 100644 (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},
   };