== Preview Range ==
2 Bugfixes: * EKEY in Timeline changed start frame of Preview Range too. Reported by slikdigit on IRC * SKEY in Timeline also didn't work correct as it was changing the end frame. New Feature: * Now OGL preview-render obeys Preview-Range settings.
This commit is contained in:
parent
1bb2c03ee6
commit
6f9e78641c
@ -926,7 +926,7 @@ void winqreadtimespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
break;
|
||||
case EKEY: /* set end frame */
|
||||
if (G.scene->r.psfra) {
|
||||
if (CFRA > G.scene->r.psfra)
|
||||
if (CFRA < G.scene->r.psfra)
|
||||
G.scene->r.psfra= CFRA;
|
||||
G.scene->r.pefra= CFRA;
|
||||
}
|
||||
@ -954,8 +954,9 @@ void winqreadtimespace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
break;
|
||||
case SKEY: /* set start frame */
|
||||
if (G.scene->r.psfra) {
|
||||
if (G.scene->r.pefra < CFRA)
|
||||
G.scene->r.pefra= CFRA;
|
||||
G.scene->r.psfra= CFRA;
|
||||
G.scene->r.pefra= (EFRA > CFRA)? (EFRA):(CFRA);
|
||||
}
|
||||
else
|
||||
G.scene->r.sfra = CFRA;
|
||||
|
@ -302,8 +302,9 @@ static void do_time_framemenu(void *arg, int event)
|
||||
switch(event) {
|
||||
case 1: /*Set as Start */
|
||||
if (G.scene->r.psfra) {
|
||||
if (G.scene->r.pefra < CFRA)
|
||||
G.scene->r.pefra= CFRA;
|
||||
G.scene->r.psfra= CFRA;
|
||||
G.scene->r.pefra= (EFRA > CFRA)? (EFRA):(CFRA);
|
||||
}
|
||||
else
|
||||
G.scene->r.sfra = CFRA;
|
||||
@ -311,7 +312,7 @@ static void do_time_framemenu(void *arg, int event)
|
||||
break;
|
||||
case 2: /* Set as End */
|
||||
if (G.scene->r.psfra) {
|
||||
if (CFRA > G.scene->r.psfra)
|
||||
if (CFRA < G.scene->r.psfra)
|
||||
G.scene->r.psfra= CFRA;
|
||||
G.scene->r.pefra= CFRA;
|
||||
}
|
||||
|
@ -1275,7 +1275,7 @@ void BIF_do_ogl_render(View3D *v3d, int anim)
|
||||
if(BKE_imtype_is_movie(G.scene->r.imtype))
|
||||
mh->start_movie(&G.scene->r, winx, winy);
|
||||
|
||||
for(CFRA= SFRA; CFRA<=EFRA; CFRA++) {
|
||||
for(CFRA= PSFRA; CFRA<=PEFRA; CFRA++) {
|
||||
/* user event can close window */
|
||||
if(render_win==NULL)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user