private void ChangeRotationInterpolation(object interpolationMode) { RotationCurveInterpolation.Mode mode = (RotationCurveInterpolation.Mode)((int)interpolationMode); AnimationWindowCurve[] array = this.state.activeCurves.ToArray(); EditorCurveBinding[] array2 = new EditorCurveBinding[array.Length]; for (int i = 0; i < array.Length; i++) { array2[i] = array[i].binding; } RotationCurveInterpolation.SetInterpolation(this.state.activeAnimationClip, array2, mode); this.MaintainTreeviewStateAfterRotationInterpolation(mode); this.state.hierarchyData.ReloadData(); }
private void ChangeRotationInterpolation(object interpolationMode) { RotationCurveInterpolation.Mode mode = (RotationCurveInterpolation.Mode)interpolationMode; AnimationWindowCurve[] array = this.state.activeCurves.ToArray(); EditorCurveBinding[] curveBindings = new EditorCurveBinding[array.Length]; for (int index = 0; index < array.Length; ++index) { curveBindings[index] = array[index].binding; } RotationCurveInterpolation.SetInterpolation(this.state.activeAnimationClip, curveBindings, mode); this.MaintainTreeviewStateAfterRotationInterpolation(mode); this.state.hierarchyData.ReloadData(); }
private void ChangeRotationInterpolation(System.Object interpolationMode) { RotationCurveInterpolation.Mode mode = (RotationCurveInterpolation.Mode)interpolationMode; AnimationWindowCurve[] activeCurves = state.activeCurves.ToArray(); EditorCurveBinding[] curveBindings = new EditorCurveBinding[activeCurves.Length]; for (int i = 0; i < activeCurves.Length; i++) { curveBindings[i] = activeCurves[i].binding; } RotationCurveInterpolation.SetInterpolation(state.activeAnimationClip, curveBindings, mode); MaintainTreeviewStateAfterRotationInterpolation(mode); state.hierarchyData.ReloadData(); }