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>2014-05-08 09:43:11 +0400
committerJoshua Leung <aligorith@gmail.com>2014-05-08 09:43:11 +0400
commitd20c9e491c4f158330029c6cccfc50216843fbb5 (patch)
tree412e19f5c1b42faee866ddb6e04242e841565a53 /source/blender/editors/animation/anim_ops.c
parent88e5705a3fe04cf9e83baa4007c06e35d19156ae (diff)
Bugfix: "Lock time to frame range" didn't work in the Graph Editor
This uses a different operator than the other time editors (as it needs to support the setting of the value-cursor too), so the changes here didn't get propagated through.
Diffstat (limited to 'source/blender/editors/animation/anim_ops.c')
-rw-r--r--source/blender/editors/animation/anim_ops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c
index d9a5d713480..88429aa3867 100644
--- a/source/blender/editors/animation/anim_ops.c
+++ b/source/blender/editors/animation/anim_ops.c
@@ -128,11 +128,11 @@ static int frame_from_event(bContext *C, const wmEvent *event)
/* round result to nearest int (frames are ints!) */
frame = iroundf(viewx);
-
+
if (scene->r.flag & SCER_LOCK_FRAME_SELECTION) {
CLAMP(frame, PSFRA, PEFRA);
}
-
+
return frame;
}