diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-06-08 14:57:24 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-06-08 14:57:24 +0400 |
commit | cec102e7813a6eeb45223be9c14d4850146f5d8e (patch) | |
tree | 41c1819fb1efe2a37a6d298810dd8fdbb05e2aeb | |
parent | 40c171a69f3ae47368c277748537f1a1a9b451d6 (diff) |
Bugfix [#27586] P for setting playback range is clamped to > 0
Thanks for the patch Bastien Montagne. Was just legacy code from 2.4x
-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 0e0bf275d8f..7a94a21d41e 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -199,8 +199,8 @@ static int previewrange_define_exec(bContext *C, wmOperator *op) * - must clamp within allowable limits * - end must not be before start (though this won't occur most of the time) */ - if (sfra < 1) sfra = 1.0f; - if (efra < 1) efra = 1.0f; + FRAMENUMBER_MIN_CLAMP(sfra); + FRAMENUMBER_MIN_CLAMP(efra); if (efra < sfra) efra= sfra; scene->r.flag |= SCER_PRV_RANGE; |