diff options
Diffstat (limited to 'source/blender/editors/space_action/action_edit.c')
-rw-r--r-- | source/blender/editors/space_action/action_edit.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index ecf64fa7944..13dfd9754ab 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -1051,22 +1051,6 @@ void ACT_OT_keyframes_handle_type_set (wmOperatorType *ot) /* ***************** Snap Current Frame Operator *********************** */ -/* helper callback for actkeys_cfrasnap_exec() -> used to help get the average time of all selected beztriples */ -// TODO: if some other code somewhere needs this, it'll be time to port this over to keyframes_edit.c!!! -static 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 */ - bed->f1 += bezt->vec[1][0]; - - /* increment number of items */ - bed->i1++; - } - - return 0; -} - /* snap current-frame indicator to 'average time' of selected keyframe */ static int actkeys_cfrasnap_exec(bContext *C, wmOperator *op) { |