2.5
[blender-staging.git] / source / blender / editors / object / object_ops.c
index ad3d13ed5118bb4dcc10ec68dd36cdecd360559e..27d481ef5098818e41ada50c5f4681c9fe0fe84f 100644 (file)
@@ -64,6 +64,7 @@
 void ED_operatortypes_object(void)
 {
        WM_operatortype_append(OBJECT_OT_editmode_toggle);
+       WM_operatortype_append(OBJECT_OT_posemode_toggle);
        WM_operatortype_append(OBJECT_OT_parent_set);
        WM_operatortype_append(OBJECT_OT_parent_clear);
        WM_operatortype_append(OBJECT_OT_track_set);
@@ -149,6 +150,7 @@ void ED_keymap_object(wmWindowManager *wm)
        
        /* Note: this keymap works disregarding mode */
        WM_keymap_add_item(keymap, "OBJECT_OT_editmode_toggle", TABKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "OBJECT_OT_posemode_toggle", TABKEY, KM_PRESS, KM_CTRL, 0);
        WM_keymap_add_item(keymap, "OBJECT_OT_center_set", CKEY, KM_PRESS, KM_ALT|KM_SHIFT|KM_CTRL, 0);
 
        /* Note: this keymap gets disabled in non-objectmode,  */