private void Refresh()
 {
     if (this.refresh == AnimationWindowState.RefreshType.Everything)
     {
         CurveRendererCache.ClearCurveRendererCache();
         this.m_ActiveKeyframeCache = null;
         this.m_AllCurvesCache      = null;
         this.m_ActiveCurvesCache   = null;
         this.m_CurveEditorIsDirty  = true;
         this.m_dopelinesCache      = null;
         this.m_SelectedKeysCache   = null;
         if (this.refresh == AnimationWindowState.RefreshType.Everything && this.m_HierarchyData != null)
         {
             this.m_HierarchyData.UpdateData();
         }
         EditorCurveBinding?lastAddedCurveBinding = this.m_lastAddedCurveBinding;
         if (lastAddedCurveBinding.HasValue)
         {
             EditorCurveBinding?lastAddedCurveBinding2 = this.m_lastAddedCurveBinding;
             this.OnNewCurveAdded(lastAddedCurveBinding2.Value);
         }
         if (this.activeCurves.Count == 0 && this.dopelines.Count > 0)
         {
             this.SelectHierarchyItem(this.dopelines[0], false, false);
         }
         this.m_Refresh = AnimationWindowState.RefreshType.None;
     }
     else
     {
         if (this.refresh == AnimationWindowState.RefreshType.CurvesOnly)
         {
             this.m_ActiveKeyframeCache = null;
             this.m_ActiveCurvesCache   = null;
             this.m_SelectedKeysCache   = null;
             this.ReloadModifiedAnimationCurveCache();
             this.ReloadModifiedDopelineCache();
             CurveRendererCache.ClearCurveRendererCache();
             this.m_CurveEditorIsDirty = true;
             this.m_Refresh            = AnimationWindowState.RefreshType.None;
             this.m_ModifiedCurves.Clear();
         }
     }
 }
		private void Refresh()
		{
			if (this.refresh == AnimationWindowState.RefreshType.Everything)
			{
				CurveRendererCache.ClearCurveRendererCache();
				this.m_ActiveKeyframeCache = null;
				this.m_AllCurvesCache = null;
				this.m_ActiveCurvesCache = null;
				this.m_CurveEditorIsDirty = true;
				this.m_dopelinesCache = null;
				this.m_SelectedKeysCache = null;
				if (this.refresh == AnimationWindowState.RefreshType.Everything && this.m_HierarchyData != null)
				{
					this.m_HierarchyData.UpdateData();
				}
				EditorCurveBinding? lastAddedCurveBinding = this.m_lastAddedCurveBinding;
				if (lastAddedCurveBinding.HasValue)
				{
					EditorCurveBinding? lastAddedCurveBinding2 = this.m_lastAddedCurveBinding;
					this.OnNewCurveAdded(lastAddedCurveBinding2.Value);
				}
				if (this.activeCurves.Count == 0 && this.dopelines.Count > 0)
				{
					this.SelectHierarchyItem(this.dopelines[0], false, false);
				}
				this.m_Refresh = AnimationWindowState.RefreshType.None;
			}
			else
			{
				if (this.refresh == AnimationWindowState.RefreshType.CurvesOnly)
				{
					this.m_ActiveKeyframeCache = null;
					this.m_ActiveCurvesCache = null;
					this.m_SelectedKeysCache = null;
					this.ReloadModifiedAnimationCurveCache();
					this.ReloadModifiedDopelineCache();
					CurveRendererCache.ClearCurveRendererCache();
					this.m_CurveEditorIsDirty = true;
					this.m_Refresh = AnimationWindowState.RefreshType.None;
					this.m_ModifiedCurves.Clear();
				}
			}
		}
 private void Refresh()
 {
   if (this.refresh == AnimationWindowState.RefreshType.Everything)
   {
     CurveRendererCache.ClearCurveRendererCache();
     this.m_ActiveKeyframeCache = (AnimationWindowKeyframe) null;
     this.m_AllCurvesCache = (List<AnimationWindowCurve>) null;
     this.m_ActiveCurvesCache = (List<AnimationWindowCurve>) null;
     this.m_dopelinesCache = (List<DopeLine>) null;
     this.m_SelectedKeysCache = (List<AnimationWindowKeyframe>) null;
     this.m_ActiveCurveWrappersCache = (List<CurveWrapper>) null;
     if (this.hierarchyData != null)
       this.hierarchyData.UpdateData();
     if (this.m_lastAddedCurveBinding.HasValue)
       this.OnNewCurveAdded(this.m_lastAddedCurveBinding.Value);
     if (this.activeCurves.Count == 0 && this.dopelines.Count > 0)
       this.SelectHierarchyItem(this.dopelines[0], false, false);
     this.m_Refresh = AnimationWindowState.RefreshType.None;
   }
   else if (this.refresh == AnimationWindowState.RefreshType.CurvesOnly)
   {
     CurveRendererCache.ClearCurveRendererCache();
     this.m_ActiveKeyframeCache = (AnimationWindowKeyframe) null;
     this.m_ActiveCurvesCache = (List<AnimationWindowCurve>) null;
     this.m_ActiveCurveWrappersCache = (List<CurveWrapper>) null;
     this.m_SelectedKeysCache = (List<AnimationWindowKeyframe>) null;
     this.ReloadModifiedAnimationCurveCache();
     this.ReloadModifiedDopelineCache();
     this.m_Refresh = AnimationWindowState.RefreshType.None;
     this.m_ModifiedCurves.Clear();
   }
   if (!this.disabled || !this.recording)
     return;
   this.recording = false;
 }