diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-10-22 13:15:56 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-10-22 13:15:56 +0400 |
commit | ddf965b63acd86912d9d1d12633ccd1822198d48 (patch) | |
tree | a642f722b4c7ef13089de0d6640528147c804559 /source/blender/editors/animation/keyframes_edit.c | |
parent | 5777c624a54c4d834ec755a92079b504f04035e8 (diff) |
Graph Editor: Jump to Keyframes Operator now also sets the cursor value
Diffstat (limited to 'source/blender/editors/animation/keyframes_edit.c')
-rw-r--r-- | source/blender/editors/animation/keyframes_edit.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/animation/keyframes_edit.c b/source/blender/editors/animation/keyframes_edit.c index 7373edb6841..7a167cb6c0c 100644 --- a/source/blender/editors/animation/keyframes_edit.c +++ b/source/blender/editors/animation/keyframes_edit.c @@ -521,9 +521,14 @@ short bezt_calc_average(BeztEditData *bed, BezTriple *bezt) { /* only if selected */ if (bezt->f2 & SELECT) { - /* store average time in float (only do rounding at last step */ + /* store average time in float 1 (only do rounding at last step) */ bed->f1 += bezt->vec[1][0]; + /* store average value in float 2 (only do rounding at last step) + * - this isn't always needed, but some operators may also require this + */ + bed->f2 += bezt->vec[1][1]; + /* increment number of items */ bed->i1++; } @@ -682,7 +687,7 @@ static short mirror_bezier_value(BeztEditData *bed, BezTriple *bezt) return 0; } -/* Note: for markers case, need to set global vars (eww...) */ +/* Note: for markers and 'value', the values to use must be supplied as the first float value */ // calchandles_fcurve BeztEditFunc ANIM_editkeyframes_mirror(short type) { |