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>2006-11-17 02:15:06 +0300
committerJoshua Leung <aligorith@gmail.com>2006-11-17 02:15:06 +0300
commit9ce143ae25bb50d68defab3f768c32e7fd1d54a9 (patch)
tree982e58e668d4c26bfa5db443fd4df81e9e6f347a /source/blender/src/header_action.c
parentf89b0522623929580d59c2d518837d216cc51961 (diff)
This commit adds some missing features to markers in action editor,
and also fixes some further segfaults. Now it is possible to 'surf' (jump) to different markers. This is only possible through the hotkeys for this: * Page Up - Next Marker * Page Down - Previous Marker These hotkeys match the ones in the timeline. In order to do so, I've had to reassign two (rarely used/obscure) hotkeys: * 'Ctrl Page Up' is now move selected action channel up (was Page Up) * 'Ctrl Page Down' is no move selected action channel down (was Page Down) I should also mention here that * 'Shift Page Up' is move action channel to top * 'Shift Page Down' is move action channel to bottom
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r--source/blender/src/header_action.c27
1 files changed, 14 insertions, 13 deletions
diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c
index eecfcda1359..27893184c24 100644
--- a/source/blender/src/header_action.c
+++ b/source/blender/src/header_action.c
@@ -439,8 +439,8 @@ static uiBlock *action_selectmenu(void *arg_unused)
"Select Keys Column|K", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
ACTMENU_SEL_COLUMN, "");
-
- /*
+
+/*
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
"Select Keys At Markers|CTRL K", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
@@ -450,7 +450,7 @@ static uiBlock *action_selectmenu(void *arg_unused)
"Select Keys Between Markers|SHIFT K", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
ACTMENU_SEL_MARKERS_KEYSBETWEEN, "");
- */
+*/
if(curarea->headertype==HEADERTOP) {
uiBlockSetDirection(block, UI_DOWN);
@@ -774,11 +774,11 @@ static uiBlock *action_keymenu_chanposmenu(void *arg_unused)
uiBlockSetButmFunc(block, do_action_keymenu_chanposmenu, NULL);
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Move Up|Page Up", 0, yco-=20,
+ "Move Up|Ctrl Page Up", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
ACTMENU_KEY_CHANPOS_MOVE_CHANNEL_UP, "");
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Move Down|Page Down", 0, yco-=20,
+ "Move Down|Ctrl Page Down", 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 0,
ACTMENU_KEY_CHANPOS_MOVE_CHANNEL_DOWN, "");
@@ -927,30 +927,30 @@ static uiBlock *action_keymenu(void *arg_unused)
static void do_action_markermenu(void *arg, int event)
{
SpaceAction *saction;
- ListBase *lb = NULL;
+ ListBase *markers = NULL;
saction= curarea->spacedata.first;
if (!saction)
return;
/* get set of markers */
- lb= get_saction_markers(saction);
- if (lb == NULL)
+ markers= get_saction_markers(saction);
+ if (markers == NULL)
return;
switch(event)
{
case ACTMENU_MARKERS_ADD:
- add_saction_marker(lb, CFRA);
+ add_saction_marker(markers, CFRA);
break;
case ACTMENU_MARKERS_DUPLICATE:
- duplicate_saction_markers(lb);
+ duplicate_saction_markers(markers);
break;
case ACTMENU_MARKERS_DELETE:
- remove_saction_markers(lb);
+ remove_saction_markers(markers);
break;
case ACTMENU_MARKERS_NAME:
- rename_saction_markers(lb);
+ rename_saction_markers(markers);
break;
case ACTMENU_MARKERS_MOVE:
transform_saction_markers('g', 0);
@@ -1075,7 +1075,8 @@ void action_buttons(void)
"Key", xco, -2, xmax-3, 24, "");
xco+= xmax;
- if (G.saction->markert != SACTION_NOMARKERS) {
+ if ((G.saction->markert != SACTION_NOMARKERS) &&
+ (G.saction->action != NULL)) {
xmax= GetButStringLength("Marker");
uiDefPulldownBut(block, action_markermenu, NULL,
"Marker", xco, -2, xmax-3, 24, "");