Patch [#24497] Fix for [#24484] Right Ctrl for snapping by Alexander Kuznetsov. Thank...
authorThomas Dinges <blender@dingto.org>
Tue, 2 Nov 2010 09:04:57 +0000 (09:04 +0000)
committerThomas Dinges <blender@dingto.org>
Tue, 2 Nov 2010 09:04:57 +0000 (09:04 +0000)
This fixes [#24484] Right Hand Ctrl key none functional for snapping?

source/blender/editors/transform/transform.c

index fa8931d..8cf790f 100644 (file)
@@ -534,6 +534,9 @@ wmKeyMap* transform_modal_keymap(wmKeyConfig *keyconf)
 
        WM_modalkeymap_add_item(keymap, LEFTCTRLKEY, KM_PRESS, KM_ANY, 0, TFM_MODAL_SNAP_INV_ON);
        WM_modalkeymap_add_item(keymap, LEFTCTRLKEY, KM_RELEASE, KM_ANY, 0, TFM_MODAL_SNAP_INV_OFF);
+
+       WM_modalkeymap_add_item(keymap, RIGHTCTRLKEY, KM_PRESS, KM_ANY, 0, TFM_MODAL_SNAP_INV_ON);
+       WM_modalkeymap_add_item(keymap, RIGHTCTRLKEY, KM_RELEASE, KM_ANY, 0, TFM_MODAL_SNAP_INV_OFF);
        
        WM_modalkeymap_add_item(keymap, AKEY, KM_PRESS, 0, 0, TFM_MODAL_ADD_SNAP);
        WM_modalkeymap_add_item(keymap, AKEY, KM_PRESS, KM_ALT, 0, TFM_MODAL_REMOVE_SNAP);