private RotationCurveInterpolation.Mode GetRotationInterpolationMode(EditorCurveBinding[] curves) { if (curves == null || curves.Length == 0) { return(RotationCurveInterpolation.Mode.Undefined); } RotationCurveInterpolation.Mode modeFromCurveData = RotationCurveInterpolation.GetModeFromCurveData(curves[0]); for (int i = 1; i < curves.Length; i++) { RotationCurveInterpolation.Mode modeFromCurveData2 = RotationCurveInterpolation.GetModeFromCurveData(curves[i]); if (modeFromCurveData != modeFromCurveData2) { return(RotationCurveInterpolation.Mode.Undefined); } } return(modeFromCurveData); }
public static RotationMode GetRotationMode(EditorCurveBinding binding) { return((RotationMode)RotationCurveInterpolation.GetModeFromCurveData(binding)); }