Quick tweaks to commonly debated mesh-editing hotkeys:
authorJoshua Leung <aligorith@gmail.com>
Fri, 25 Sep 2009 01:43:34 +0000 (01:43 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 25 Sep 2009 01:43:34 +0000 (01:43 +0000)
* Loopcut is now just Ctrl-R.
The preview will be activated when you do this, and you can just click to confirm as in 2.4x and also like when this was activated from the toolshelf. This is less error prone than having to click at the same time as picking the loop as with the previous hotkey.

* Knife is now just: hold k-key and lmb click+drag to draw a cut line and cut the mesh.
This is more direct than the (rather arcane) Ctrl-X-LMB-drag, and is quite similar to what's done for Grease Pencil now.

source/blender/editors/mesh/mesh_ops.c

index 96f5e7452d166ad6836612b9049e16eeb453463b..21148e5915310a1f80ec46af09f4e941d539524a 100644 (file)
@@ -356,7 +356,7 @@ void ED_keymap_mesh(wmWindowManager *wm)
        keymap= WM_keymap_find(wm, "EditMesh", 0, 0);
        keymap->poll= ED_operator_editmesh;
        
-       WM_keymap_add_item(keymap, "MESH_OT_loopcut", ACTIONMOUSE, KM_PRESS, KM_CTRL, RKEY);
+       WM_keymap_add_item(keymap, "MESH_OT_loopcut", RKEY, KM_PRESS, KM_CTRL, 0);
 
        /* selecting */
        /* standard mouse selection goes via space_view3d */
@@ -438,7 +438,7 @@ void ED_keymap_mesh(wmWindowManager *wm)
        WM_keymap_add_item(keymap, "MESH_OT_fgon_make", FKEY, KM_PRESS, KM_ALT, 0);
        WM_keymap_add_item(keymap, "MESH_OT_fgon_clear", FKEY, KM_PRESS, KM_SHIFT|KM_ALT, 0);
        
-       WM_keymap_add_item(keymap, "MESH_OT_knife_cut", LEFTMOUSE, KM_PRESS, KM_CTRL, XKEY);
+       WM_keymap_add_item(keymap, "MESH_OT_knife_cut", LEFTMOUSE, KM_PRESS, 0, KKEY);
 
        /* menus */
        WM_keymap_add_item(keymap, "MESH_OT_vertex_specials", VKEY, KM_PRESS, KM_CTRL, 0);