diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-19 23:30:04 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-19 23:30:04 +0300 |
commit | a8a5defc0caac44b1fa6fcd330ca8fb262b55547 (patch) | |
tree | 82a0fbf31a068ccffcc9d3ec1e36d5ac087b9e60 /source/blender/editors/screen | |
parent | 21004122847fb2570fd61de6677d2b0c8f96444a (diff) |
Preview Range Tweak:
Made preview range be turned on/off using a proper flag instead of just relying on checking for start-frame = 0. It is no longer satisfactory to do that since we can have negative frame numbers, and also having it as a proper flag means that the range can be toggled on/off non-destructively.
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r-- | source/blender/editors/screen/screen_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/screen/screen_ops.c b/source/blender/editors/screen/screen_ops.c index f1e0f9c6bf1..87b61d2df27 100644 --- a/source/blender/editors/screen/screen_ops.c +++ b/source/blender/editors/screen/screen_ops.c @@ -2429,7 +2429,7 @@ static int screen_animation_step(bContext *C, wmOperator *op, wmEvent *event) if (sad->flag & ANIMPLAY_FLAG_REVERSE) { /* jump back to end? */ - if (scene->r.psfra) { + if (PRVRANGEON) { if (scene->r.cfra < scene->r.psfra) { scene->r.cfra= scene->r.pefra; sad->flag |= ANIMPLAY_FLAG_JUMPED; @@ -2444,7 +2444,7 @@ static int screen_animation_step(bContext *C, wmOperator *op, wmEvent *event) } else { /* jump back to start? */ - if (scene->r.psfra) { + if (PRVRANGEON) { if (scene->r.cfra > scene->r.pefra) { scene->r.cfra= scene->r.psfra; sad->flag |= ANIMPLAY_FLAG_JUMPED; |