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-02-08 23:15:07 +0300
committerJoshua Leung <aligorith@gmail.com>2008-02-08 23:15:07 +0300
commit5bab02b5cb30363493ea816e6857c05d0a969932 (patch)
treef28bb4ec38ad00d944bc54e7628dd9311dc014b7 /source/blender/src/header_info.c
parentb22dc0b8496bb3209bdcb526d1e05eaa4595e15a (diff)
Ctrl-PageUp/Down in 3D-view now behaves the same as for the Timeline for consistency. The old behaviour for this (jumping between ob-ipo keyframes (Draw/Show Keys)) was not used that often, and has now been remapped to Shift-PageUp/Down
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c24
1 files changed, 18 insertions, 6 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index 89151481646..4559d5c460b 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -111,6 +111,7 @@
#include "BSE_node.h"
#include "BSE_sequence.h"
#include "BSE_edit.h"
+#include "BSE_time.h"
#include "IMB_imbuf_types.h"
@@ -1639,23 +1640,23 @@ static void do_info_timelinemenu(void *arg, int event)
if (!ob) error("Select an object before showing and selecting its keyframes");
else select_select_keys();
break;
- case 3:
+ case 3:
/* select next keyframe */
if (!ob) error("Select an object before selecting its next keyframe");
else nextkey_obipo(1);
break;
- case 4:
+ case 4:
/* select previous keyframe */
if (!ob) error("Select an object before selecting its previous keyframe");
else nextkey_obipo(-1);
break;
case 5:
- /* next keyframe */
+ /* next keyframe */
if (!ob) error("Select an object before going to its next keyframe");
else movekey_obipo(1);
break;
case 6:
- /* previous keyframe */
+ /* previous keyframe */
if (!ob) error("Select an object before going to its previous keyframe");
else movekey_obipo(-1);
break;
@@ -1691,6 +1692,14 @@ static void do_info_timelinemenu(void *arg, int event)
CFRA= SFRA;
update_for_newframe();
break;
+ case 13:
+ /* previous keyframe */
+ nextprev_timeline_key(-1);
+ break;
+ case 14:
+ /* next keyframe */
+ nextprev_timeline_key(1);
+ break;
}
allqueue(REDRAWINFO, 0);
}
@@ -1713,9 +1722,12 @@ static uiBlock *info_timelinemenu(void *arg_unused)
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Next Keyframe|Ctrl PageUp", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, "");
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Previous Keyframe|Ctrl PageDown", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Next Ob-Keyframe|Shift PageUp", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 5, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Previous Ob-Keyframe|Shift PageDown", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 6, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Next Keyframe|Ctrl PageUp", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 13, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Previous Keyframe|Ctrl PageDown", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 14, "");
+
uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Next Frame|RightArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 7, "");