Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-06-09 16:28:49 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-09 16:28:49 +0400
commitabdb8fd94d90a1b9fb262c94dac1ccb52cfee36f (patch)
treefb7d82ed5c30c25e2ce07945b1938872ad96f96f /source/blender/editors/space_nla/nla_ops.c
parentca5ff43b1f3efa555b1e52d190c5a97332e01e85 (diff)
NLA SoC: Added simple delete-strips operator (XKEY/DELKEY)
Diffstat (limited to 'source/blender/editors/space_nla/nla_ops.c')
-rw-r--r--source/blender/editors/space_nla/nla_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c
index 6505b1deea3..3eb32d147f5 100644
--- a/source/blender/editors/space_nla/nla_ops.c
+++ b/source/blender/editors/space_nla/nla_ops.c
@@ -131,6 +131,8 @@ void nla_operatortypes(void)
/* edit */
WM_operatortype_append(NLAEDIT_OT_tweakmode_enter);
WM_operatortype_append(NLAEDIT_OT_tweakmode_exit);
+
+ WM_operatortype_append(NLAEDIT_OT_delete);
}
/* ************************** registration - keymaps **********************************/
@@ -191,6 +193,10 @@ static void nla_keymap_main (wmWindowManager *wm, ListBase *keymap)
*/
WM_keymap_add_item(keymap, "NLAEDIT_OT_tweakmode_enter", TABKEY, KM_PRESS, 0, 0);
WM_keymap_add_item(keymap, "NLAEDIT_OT_tweakmode_exit", TABKEY, KM_PRESS, 0, 0);
+
+ /* delete */
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_delete", XKEY, KM_PRESS, 0, 0);
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_delete", DELKEY, KM_PRESS, 0, 0);
/* transform system */
transform_keymap_for_space(wm, keymap, SPACE_NLA);