2.5 - Action Editor / Animation Stuff:
[blender-staging.git] / source / blender / editors / space_action / action_ops.c
index d6a7fda2704cc83a12144d7642ff7435088df9a6..cd9be252fa8e646492caddd44afb180b3c1c4d3a 100644 (file)
@@ -75,6 +75,9 @@ void action_operatortypes(void)
        WM_operatortype_append(ACT_OT_keyframes_handletype);
        WM_operatortype_append(ACT_OT_keyframes_ipotype);
        WM_operatortype_append(ACT_OT_keyframes_expotype);
+       WM_operatortype_append(ACT_OT_keyframes_sample);
+       WM_operatortype_append(ACT_OT_keyframes_clean);
+       WM_operatortype_append(ACT_OT_keyframes_delete);
 }
 
 /* ************************** registration - keymaps **********************************/
@@ -114,6 +117,13 @@ static void action_keymap_keyframes (ListBase *keymap)
        WM_keymap_add_item(keymap, "ACT_OT_keyframes_handletype", HKEY, KM_PRESS, 0, 0);
        WM_keymap_add_item(keymap, "ACT_OT_keyframes_ipotype", TKEY, KM_PRESS, KM_SHIFT, 0);
        WM_keymap_add_item(keymap, "ACT_OT_keyframes_expotype", EKEY, KM_PRESS, KM_SHIFT, 0); // temp...
+       
+               /* destructive */
+       WM_keymap_add_item(keymap, "ACT_OT_keyframes_clean", OKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "ACT_OT_keyframes_sample", OKEY, KM_PRESS, KM_SHIFT, 0);
+       
+       WM_keymap_add_item(keymap, "ACT_OT_keyframes_delete", XKEY, KM_PRESS, 0, 0);
+       WM_keymap_add_item(keymap, "ACT_OT_keyframes_delete", DELKEY, KM_PRESS, 0, 0);
 }
 
 /* --------------- */