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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2010-01-19 23:30:04 +0300
committerJoshua Leung <aligorith@gmail.com>2010-01-19 23:30:04 +0300
commita8a5defc0caac44b1fa6fcd330ca8fb262b55547 (patch)
tree82a0fbf31a068ccffcc9d3ec1e36d5ac087b9e60 /source/blender/editors/space_time/time_ops.c
parent21004122847fb2570fd61de6677d2b0c8f96444a (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/space_time/time_ops.c')
-rw-r--r--source/blender/editors/space_time/time_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_time/time_ops.c b/source/blender/editors/space_time/time_ops.c
index b4eb3231b50..e3ea2ea29ea 100644
--- a/source/blender/editors/space_time/time_ops.c
+++ b/source/blender/editors/space_time/time_ops.c
@@ -69,7 +69,7 @@ static int time_set_sfra_exec (bContext *C, wmOperator *op)
if (PEFRA < frame) frame= PEFRA;
/* if Preview Range is defined, set the 'start' frame for that */
- if (scene->r.psfra)
+ if (PRVRANGEON)
scene->r.psfra= frame;
else
scene->r.sfra= frame;
@@ -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.psfra) /* start frame 0 is used to check if the preview is used at all */
+ if (PRVRANGEON)
scene->r.pefra= frame;
else
scene->r.efra= frame;