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/animation/anim_draw.c | |
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/animation/anim_draw.c')
-rw-r--r-- | source/blender/editors/animation/anim_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/anim_draw.c b/source/blender/editors/animation/anim_draw.c index f8a5a9daa06..6b1933a791f 100644 --- a/source/blender/editors/animation/anim_draw.c +++ b/source/blender/editors/animation/anim_draw.c @@ -215,7 +215,7 @@ void ANIM_draw_previewrange (const bContext *C, View2D *v2d) Scene *scene= CTX_data_scene(C); /* only draw this if preview range is set */ - if (scene->r.psfra) { + if (PRVRANGEON) { glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); glColor4f(0.0f, 0.0f, 0.0f, 0.4f); |