diff options
author | Joshua Leung <aligorith@gmail.com> | 2014-05-08 09:43:11 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2014-05-08 09:43:11 +0400 |
commit | d20c9e491c4f158330029c6cccfc50216843fbb5 (patch) | |
tree | 412e19f5c1b42faee866ddb6e04242e841565a53 /source/blender/editors/animation/anim_ops.c | |
parent | 88e5705a3fe04cf9e83baa4007c06e35d19156ae (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.c | 4 |
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; } |