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_action
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_action')
-rw-r--r--source/blender/editors/space_action/action_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c
index d94d5bec490..1ab4364951d 100644
--- a/source/blender/editors/space_action/action_edit.c
+++ b/source/blender/editors/space_action/action_edit.c
@@ -214,6 +214,7 @@ static int actkeys_previewrange_exec(bContext *C, wmOperator *op)
/* set the range directly */
get_keyframe_extents(&ac, &min, &max);
+ scene->r.flag |= SCER_PRV_RANGE;
scene->r.psfra= (int)floor(min + 0.5f);
scene->r.pefra= (int)floor(max + 0.5f);