View3d - walk: expose gravity toggle to keymap
authorDalai Felinto <dfelinto@gmail.com>
Fri, 31 Oct 2014 00:16:43 +0000 (22:16 -0200)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 31 Oct 2014 00:16:43 +0000 (22:16 -0200)
source/blender/editors/space_view3d/view3d_walk.c

index c54948b23c689fd313ea8f1c08f1cabf227278d6..9b9b7a8d258ab58a4f3d410cdd7cd95f8d4b2b8c 100644 (file)
@@ -152,6 +152,8 @@ void walk_modal_keymap(wmKeyConfig *keyconf)
                {WALK_MODAL_JUMP, "JUMP", 0, "Jump", "Jump when in walk mode"},
                {WALK_MODAL_JUMP_STOP, "JUMP_STOP", 0, "Jump Stop", "Stop pushing jump"},
 
+               {WALK_MODAL_TOGGLE, "GRAVITY_TOGGLE", 0, "Toggle Gravity", "Toggle gravity effect"},
+
                {0, NULL, 0, NULL, NULL}};
 
        wmKeyMap *keymap = WM_modalkeymap_get(keyconf, "View3D Walk Modal");