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
path: root/source
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2012-03-08 21:40:55 +0400
committerTon Roosendaal <ton@blender.org>2012-03-08 21:40:55 +0400
commita8d65a3708277112a352a2e051a08f4d8032880e (patch)
treeae64debcc1e06e7dae776cd652b094ba3a8dadea /source
parentfe131db70bc59f1e25b5fffe41283f7444cce140 (diff)
Fix for Francesco Siddi: ALT+A should always start with the scene start frame!
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/screen/screen_edit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c
index 7be09b1d5f3..476f037c191 100644
--- a/source/blender/editors/screen/screen_edit.c
+++ b/source/blender/editors/screen/screen_edit.c
@@ -1742,7 +1742,14 @@ void ED_screen_animation_timer(bContext *C, int redraws, int refresh, int sync,
screen->animtimer= WM_event_add_timer(wm, win, TIMER0, (1.0/FPS));
sad->ar= CTX_wm_region(C);
- sad->sfra = scene->r.cfra;
+ /* if startframe is larger than current frame, we put currentframe on startframe.
+ note: first frame then is not drawn! (ton) */
+ if(scene->r.sfra > scene->r.cfra) {
+ sad->sfra= scene->r.cfra;
+ scene->r.cfra= scene->r.sfra;
+ }
+ else
+ sad->sfra = scene->r.cfra;
sad->redraws= redraws;
sad->refresh= refresh;
sad->flag |= (enable < 0)? ANIMPLAY_FLAG_REVERSE: 0;