[Bf-blender-cvs] [06eb046bd7a] soc-2021-knife-tools: Knife: Removed 'E' knife cancel functionality and moved 'M' modal to 'D'

Cian Jinks noreply at git.blender.org
Wed Jun 30 12:44:57 CEST 2021


Commit: 06eb046bd7a786ba8dbe6649fc9cea52dcc64b94
Author: Cian Jinks
Date:   Wed Jun 30 11:41:43 2021 +0100
Branches: soc-2021-knife-tools
https://developer.blender.org/rB06eb046bd7a786ba8dbe6649fc9cea52dcc64b94

Knife: Removed 'E' knife cancel functionality and moved 'M' modal to 'D'

It is dangerous to have 'E' be able to cancel a user's entire cut as it is a key many could accidentally hit and there is no way to retrieve a lost cut. Removing it leaves 'Esc' as the key for cancelling a cut.

On many keyboards 'M' is far away from the other modal keys for the knife tool. 'D' allows for a better workflow by being closer.

===================================================================

M	release/scripts/presets/keyconfig/keymap_data/blender_default.py

===================================================================

diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index 81c101bccc3..8178f52411f 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -5365,7 +5365,6 @@ def km_knife_tool_modal_map(_params):
         ("PANNING", {"type": 'MIDDLEMOUSE', "value": 'ANY', "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": 'E', "value": 'PRESS', "any": True}, None),
         ("CONFIRM", {"type": 'RET', "value": 'PRESS', "any": True}, None),
         ("CONFIRM", {"type": 'NUMPAD_ENTER', "value": 'PRESS', "any": True}, None),
         ("CONFIRM", {"type": 'SPACE', "value": 'PRESS', "any": True}, None),
@@ -5380,7 +5379,7 @@ def km_knife_tool_modal_map(_params):
         ("IGNORE_SNAP_OFF", {"type": 'RIGHT_SHIFT', "value": 'RELEASE', "any": True}, None),
         ("ANGLE_SNAP_TOGGLE", {"type": 'C', "value": 'PRESS'}, None),
         ("CUT_THROUGH_TOGGLE", {"type": 'T', "value": 'PRESS'}, None),
-        ("SHOW_DISTANCE_ANGLE_TOGGLE", {"type": 'M', "value": 'PRESS'}, None),
+        ("SHOW_DISTANCE_ANGLE_TOGGLE", {"type": 'D', "value": 'PRESS'}, None),
     ])
 
     return keymap



More information about the Bf-blender-cvs mailing list