diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-02-18 03:29:08 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-02-18 03:29:08 +0300 |
commit | 21a2350248fd526b898186ff7f1e2f5bc7457efd (patch) | |
tree | c329babd5fb61a903ccb389243d21bd7cbf7e9a0 /source/blender/editors/animation/anim_ops.c | |
parent | 65cac9ae1392f9eeb00cf2154e9c154e7104ce6b (diff) |
Animation Playback Option (No negative frames) and Other Bugfixes:
* Added a user-preference setting which disallows setting the current frame number to a negative number. This setting only applies when setting the current frame by scrubbing the time cursor in a timeline view, or by typing a value into the current frame number field.
* Made the minimum frame number for the start frame to be 0, which should make setting keyframes by a regular step size less confusing. Also changed the MINFRAME define to 0 for consistency. Hopefully this doesn't cause any problems with any output formats.
* Fixed some missing channel selection cases in animation editors.
Diffstat (limited to 'source/blender/editors/animation/anim_ops.c')
-rw-r--r-- | source/blender/editors/animation/anim_ops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_ops.c b/source/blender/editors/animation/anim_ops.c index 090df504b83..4e310e27c5f 100644 --- a/source/blender/editors/animation/anim_ops.c +++ b/source/blender/editors/animation/anim_ops.c @@ -81,6 +81,7 @@ static void change_frame_apply(bContext *C, wmOperator *op) /* set the new frame number */ CFRA= RNA_int_get(op->ptr, "frame"); + FRAMENUMBER_MIN_CLAMP(CFRA); /* do updates */ sound_seek_scene(C); |