public static CurveSelection AnimationWindowKeyframeToCurveSelection(AnimationWindowKeyframe keyframe, CurveEditor curveEditor)
{
foreach (CurveWrapper animationCurve in curveEditor.animationCurves)
{
if (animationCurve.binding == keyframe.curve.binding && keyframe.GetIndex() >= 0)
{
return(new CurveSelection(animationCurve.id, curveEditor, keyframe.GetIndex()));
}
}
return((CurveSelection)null);
}