diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-02-23 07:44:52 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-02-23 07:44:52 +0300 |
commit | 98a81b3927ceb447dacea27b688006332aace2ae (patch) | |
tree | 8719f3f299f0886ab193007eaff600ad5e465878 /source/blender/src/header_info.c | |
parent | bdf75bfbefb04e4857551d6804282038b882490f (diff) |
Bugfix #6089:
"Forward/backward 10 frames" option in Timeline menu now respects
steps (spacing between frames to jump) value.
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index dd0f6973153..be863259bd8 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -1604,6 +1604,7 @@ static uiBlock *info_timelinemenu(void *arg_unused) { /* static short tog=0; */ uiBlock *block; + char str[26]; short yco= 0; short menuwidth=120; @@ -1624,8 +1625,11 @@ static uiBlock *info_timelinemenu(void *arg_unused) uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Next Frame|RightArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 7, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Previous Frame|LeftArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 8, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Forward 10 Frames|UpArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Back 10 Frames|DownArrow", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 10, ""); + + sprintf(str, "Forward %d Frames|UpArrow", G.scene->jumpframe); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, str, 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 9, ""); + sprintf(str, "Back %d Frames|DownArrow", G.scene->jumpframe); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, str, 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 1, 10, ""); uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); |