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>2008-12-29 14:04:55 +0300
committerJoshua Leung <aligorith@gmail.com>2008-12-29 14:04:55 +0300
commit2c4c7004aee2f710d08055f7724af25db5817ea0 (patch)
treea8700ade70f5df78317f13fa5f52546788b9e1e1 /source/blender/editors/space_action/action_ops.c
parent1d42afe56124cc9cdf76ab25272505ba77d090b2 (diff)
2.5 - Action Editor: Copy/Paste
This can be activated using Ctrl-C/V and the buttons on the header. It still uses an ugly global copy/paste buffer for now. In future, we could investigate alternative methods...
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r--source/blender/editors/space_action/action_ops.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c
index d09a08af0b6..b9c3b711da5 100644
--- a/source/blender/editors/space_action/action_ops.c
+++ b/source/blender/editors/space_action/action_ops.c
@@ -80,6 +80,8 @@ void action_operatortypes(void)
WM_operatortype_append(ACT_OT_keyframes_sample);
WM_operatortype_append(ACT_OT_keyframes_clean);
WM_operatortype_append(ACT_OT_keyframes_delete);
+ WM_operatortype_append(ACT_OT_keyframes_copy);
+ WM_operatortype_append(ACT_OT_keyframes_paste);
}
/* ************************** registration - keymaps **********************************/
@@ -127,6 +129,11 @@ static void action_keymap_keyframes (wmWindowManager *wm, ListBase *keymap)
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);
+ /* copy/paste */
+ // XXX - should we keep these?
+ WM_keymap_add_item(keymap, "ACT_OT_keyframes_copy", CKEY, KM_PRESS, KM_CTRL, 0);
+ WM_keymap_add_item(keymap, "ACT_OT_keyframes_paste", VKEY, KM_PRESS, KM_CTRL, 0);
+
/* transform system */
transform_keymap_for_space(wm, keymap, SPACE_ACTION);
}