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-11 06:18:29 +0400
committerJoshua Leung <aligorith@gmail.com>2009-06-11 06:18:29 +0400
commit4a29d0c1a36359c3e08a90beb80cd40857305c80 (patch)
tree4cfe2a9427fe3f5275e088dfb6659e4a4d74c762 /source/blender/editors/space_nla/nla_ops.c
parent64f94a670ea9a5704276f1e80f61afdcb067a2b6 (diff)
NLA SoC: 'Split' Operator (YKEY)
Selected NLA Strips are split into two strips, each with half the length of the original strip. Possible improvements subject to demand: - multiple splits? - splits with variable spacing? (i.e. 3:2, or 1:5).
Diffstat (limited to 'source/blender/editors/space_nla/nla_ops.c')
-rw-r--r--source/blender/editors/space_nla/nla_ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c
index 61654338fea..14c6f2a32d2 100644
--- a/source/blender/editors/space_nla/nla_ops.c
+++ b/source/blender/editors/space_nla/nla_ops.c
@@ -134,6 +134,7 @@ void nla_operatortypes(void)
WM_operatortype_append(NLAEDIT_OT_tweakmode_exit);
WM_operatortype_append(NLAEDIT_OT_delete);
+ WM_operatortype_append(NLAEDIT_OT_split);
}
/* ************************** registration - keymaps **********************************/
@@ -204,6 +205,9 @@ static void nla_keymap_main (wmWindowManager *wm, ListBase *keymap)
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);
+ /* split */
+ WM_keymap_add_item(keymap, "NLAEDIT_OT_split", YKEY, KM_PRESS, 0, 0);
+
/* transform system */
transform_keymap_for_space(wm, keymap, SPACE_NLA);
}