From dcb07e387d7a9aec0ec8a9bb091ecad418a80a23 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sun, 12 Apr 2009 06:47:25 +0000 Subject: Action Editor: Selection tools cleanup * Cleaned up the code for selecting keyframes * Click-column-select (Alt-RMB) now works * Also, moved a function used in both Action/DopeSheet and Graph editors to the Animation module --- source/blender/editors/space_graph/graph_edit.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'source/blender/editors/space_graph/graph_edit.c') diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c index d558d94f680..18cb5a88c26 100644 --- a/source/blender/editors/space_graph/graph_edit.c +++ b/source/blender/editors/space_graph/graph_edit.c @@ -1329,22 +1329,6 @@ void GRAPHEDIT_OT_keyframes_euler_filter (wmOperatorType *ot) /* ***************** Snap Current Frame Operator *********************** */ -/* helper callback for graphkeys_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 graphkeys_cfrasnap_exec(bContext *C, wmOperator *op) { -- cgit v1.2.3