diff options
author | Joshua Leung <aligorith@gmail.com> | 2008-12-28 07:13:18 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2008-12-28 07:13:18 +0300 |
commit | 452f1d1ea9ecc637103a55ad97564a44371b228a (patch) | |
tree | 021c38df06f52ea2af128656bfac34a8c979bc5b /source/blender/editors/space_action/action_ops.c | |
parent | bb02d1fd4f86cdb42b1d3dee7b56ec2bde20fbbc (diff) |
2.5
- Action Editor: Snap Current Frame to Selected Keyframes
- Change time operator - removed old unnecessary code
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r-- | source/blender/editors/space_action/action_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c index 51b8800c1ea..63de5d147e9 100644 --- a/source/blender/editors/space_action/action_ops.c +++ b/source/blender/editors/space_action/action_ops.c @@ -69,6 +69,7 @@ void action_operatortypes(void) WM_operatortype_append(ACT_OT_keyframes_columnselect); /* editing */ + WM_operatortype_append(ACT_OT_keyframes_cfrasnap); WM_operatortype_append(ACT_OT_keyframes_snap); WM_operatortype_append(ACT_OT_keyframes_mirror); } @@ -99,6 +100,9 @@ static void action_keymap_keyframes (ListBase *keymap) RNA_enum_set(WM_keymap_add_item(keymap, "ACT_OT_keyframes_columnselect", KKEY, KM_PRESS, KM_ALT, 0)->ptr, "mode", ACTKEYS_COLUMNSEL_MARKERS_BETWEEN); /* action_edit_keyframes.c */ + /* snap - current frame to selected keys */ + WM_keymap_add_item(keymap, "ACT_OT_keyframes_cfrasnap", SKEY, KM_PRESS, KM_CTRL|KM_SHIFT, 0); + /* menu+1-step transform */ WM_keymap_add_item(keymap, "ACT_OT_keyframes_snap", SKEY, KM_PRESS, KM_SHIFT, 0); WM_keymap_add_item(keymap, "ACT_OT_keyframes_mirror", MKEY, KM_PRESS, KM_SHIFT, 0); |