diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-06-27 17:00:22 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-06-27 17:00:22 +0400 |
commit | bc0cd9607e1e2d25f92216332d73c23ef1e7c786 (patch) | |
tree | 0e31f3bbd0c1e3099c372ff2935d14bcdeeec863 /source/blender/editors/space_nla/nla_ops.c | |
parent | d3557fc487bc5e5c02c9758b6a05200575e82e84 (diff) |
NLA SoC: Move Strips Up/Down Operators
These operators may be temporary only, depending on if a workable solution via transform is found.
* PageUp moves strips into the track above if there's space
* PageDown moves strips into the track below if there's space
* Also fixed a button-alignment bug in the DopeSheet header
Diffstat (limited to 'source/blender/editors/space_nla/nla_ops.c')
-rw-r--r-- | source/blender/editors/space_nla/nla_ops.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c index 531e049d29a..35db79a0b38 100644 --- a/source/blender/editors/space_nla/nla_ops.c +++ b/source/blender/editors/space_nla/nla_ops.c @@ -150,6 +150,9 @@ void nla_operatortypes(void) WM_operatortype_append(NLAEDIT_OT_delete); WM_operatortype_append(NLAEDIT_OT_split); + WM_operatortype_append(NLAEDIT_OT_move_up); + WM_operatortype_append(NLAEDIT_OT_move_down); + WM_operatortype_append(NLAEDIT_OT_apply_scale); WM_operatortype_append(NLAEDIT_OT_clear_scale); } @@ -242,8 +245,14 @@ static void nla_keymap_main (wmWindowManager *wm, ListBase *keymap) /* split */ WM_keymap_add_item(keymap, "NLAEDIT_OT_split", YKEY, KM_PRESS, 0, 0); + /* move up */ + WM_keymap_add_item(keymap, "NLAEDIT_OT_move_up", PAGEUPKEY, KM_PRESS, 0, 0); + /* move down */ + WM_keymap_add_item(keymap, "NLAEDIT_OT_move_down", PAGEDOWNKEY, KM_PRESS, 0, 0); + /* apply scale */ WM_keymap_add_item(keymap, "NLAEDIT_OT_apply_scale", AKEY, KM_PRESS, KM_CTRL, 0); + /* clear scale */ WM_keymap_add_item(keymap, "NLAEDIT_OT_clear_scale", SKEY, KM_PRESS, KM_ALT, 0); /* transform system */ |