public override int GetHashCode() { int hash = 0; unchecked { hash = curve.GetHashCode(); hash = 33 * hash + binding.GetHashCode(); } return(hash); }
private void CurveWasModified(AnimationClip clip, EditorCurveBinding binding, AnimationUtility.CurveModifiedType type) { if (clip != this.m_ActiveAnimationClip) { return; } if (type == AnimationUtility.CurveModifiedType.CurveModified) { bool flag = false; int hashCode = binding.GetHashCode(); foreach (AnimationWindowCurve current in this.allCurves) { int hashCode2 = current.binding.GetHashCode(); if (hashCode2 == hashCode) { this.m_ModifiedCurves.Add(hashCode2); flag = true; } } if (flag) { this.refresh = AnimationWindowState.RefreshType.CurvesOnly; } else { this.m_lastAddedCurveBinding = new EditorCurveBinding?(binding); this.refresh = AnimationWindowState.RefreshType.Everything; } } else { this.refresh = AnimationWindowState.RefreshType.Everything; } }
private void CurveWasModified(AnimationClip clip, EditorCurveBinding binding, AnimationUtility.CurveModifiedType type) { if ((UnityEngine.Object) clip != (UnityEngine.Object) this.activeAnimationClip) return; if (type == AnimationUtility.CurveModifiedType.CurveModified) { bool flag = false; int hashCode1 = binding.GetHashCode(); using (List<AnimationWindowCurve>.Enumerator enumerator = this.allCurves.GetEnumerator()) { while (enumerator.MoveNext()) { int hashCode2 = enumerator.Current.binding.GetHashCode(); if (hashCode2 == hashCode1) { this.m_ModifiedCurves.Add(hashCode2); flag = true; } } } if (flag) { this.refresh = AnimationWindowState.RefreshType.CurvesOnly; } else { this.m_lastAddedCurveBinding = new EditorCurveBinding?(binding); this.refresh = AnimationWindowState.RefreshType.Everything; } } else this.refresh = AnimationWindowState.RefreshType.Everything; }