From c483a54207d78acea785566e82f54145457466ec Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 15 Oct 2012 03:52:27 +0000 Subject: Making "Jump to Keyframes" operator (for Action/Graph Editors) more obvious This operator used to be called "Jump to Frame". It basically takes the midpoint (frame number and/or value) of selected keyframes, and positions the current frame (or2d-cursor in Graph Editor) at this point. The hotkey for this is now Ctrl-G (i.e. as it's similar to a "Goto Frame" feature). It is also now in the Key menu instead of in the relatively obscure View menu, even though it doesn't actually result in any keyframe edits taking place. (Also, fixed a typo/grammer issue with one of Remove Bone Group operator) --- source/blender/editors/space_action/action_edit.c | 4 ++-- source/blender/editors/space_action/action_ops.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index cd036d7cb50..78277cb8199 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -1353,9 +1353,9 @@ static int actkeys_framejump_exec(bContext *C, wmOperator *UNUSED(op)) void ACTION_OT_frame_jump(wmOperatorType *ot) { /* identifiers */ - ot->name = "Jump to Frame"; + ot->name = "Jump to Keyframes"; ot->idname = "ACTION_OT_frame_jump"; - ot->description = "Set the current frame to the average frame of the selected keyframes"; + ot->description = "Set the current frame to the average frame value of selected keyframes"; /* api callbacks */ ot->exec = actkeys_framejump_exec; diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c index e4a161e3e22..cca71bb1331 100644 --- a/source/blender/editors/space_action/action_ops.c +++ b/source/blender/editors/space_action/action_ops.c @@ -168,9 +168,8 @@ static void action_keymap_keyframes(wmKeyConfig *keyconf, wmKeyMap *keymap) /* action_edit.c */ - /* snap - current frame to selected keys */ - // TODO: maybe since this is called jump, we're better to have it on -J? - WM_keymap_add_item(keymap, "ACTION_OT_frame_jump", SKEY, KM_PRESS, KM_CTRL | KM_SHIFT, 0); + /* jump to selected keyframes */ + WM_keymap_add_item(keymap, "ACTION_OT_frame_jump", GKEY, KM_PRESS, KM_CTRL, 0); /* menu + single-step transform */ WM_keymap_add_item(keymap, "ACTION_OT_snap", SKEY, KM_PRESS, KM_SHIFT, 0); -- cgit v1.2.3