setting the timeline endframe didnt work if the preview range was used.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jan 2010 10:36:33 +0000 (10:36 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 19 Jan 2010 10:36:33 +0000 (10:36 +0000)
source/blender/editors/space_time/time_ops.c

index c80f13336cb7c90c587db0db0e69b833753140e4..b4eb3231b506ac723c1dc9b2ad0b7f9980bb27af 100644 (file)
@@ -109,7 +109,7 @@ static int time_set_efra_exec (bContext *C, wmOperator *op)
        if (PSFRA > frame) frame= PSFRA;
                
        /* if Preview Range is defined, set the 'end' frame for that */
-       if (scene->r.pefra)
+       if (scene->r.psfra) /* start frame 0 is used to check if the preview is used at all */
                scene->r.pefra= frame;
        else
                scene->r.efra= frame;