Bugfix #5434: Animation (alt-a / timeline) will not play if Sta:

frame set higher than End: frame

The end frame should not be allowed to have a value less
than the start frame. This commit sets the minimum allowable
value of the end frame button in the Anim panel and the timeline
to the start frame value.

Ton/Matt - if there is a good reason to not do this, feel free to
revert it back.
This commit is contained in:
Joshua Leung
2006-12-14 23:38:43 +00:00
parent 1ed773c71c
commit 0fbecfe936
2 changed files with 2 additions and 2 deletions

View File

@@ -1305,7 +1305,7 @@ static void render_panel_anim(void)
uiBlockBeginAlign(block);
uiDefButI(block, NUM,REDRAWSEQ,"Sta:",692,10,94,24, &G.scene->r.sfra,1.0,MAXFRAMEF, 0, 0, "The start frame of the animation");
uiDefButI(block, NUM,REDRAWSEQ,"End:",789,10,95,24, &G.scene->r.efra,1.0,MAXFRAMEF, 0, 0, "The end frame of the animation");
uiDefButI(block, NUM,REDRAWSEQ,"End:",789,10,95,24, &G.scene->r.efra,SFRA,MAXFRAMEF, 0, 0, "The end frame of the animation");
uiBlockEndAlign(block);
}

View File

@@ -429,7 +429,7 @@ void time_buttons(ScrArea *sa)
uiDefButI(block, NUM, REDRAWALL,"End:",
xco,0,4.5*XIC,YIC,
&G.scene->r.efra,MINFRAMEF,MAXFRAMEF, 0, 0,
&G.scene->r.efra,SFRA,MAXFRAMEF, 0, 0,
"The end frame of the animation");
uiBlockEndAlign(block);