public static void RepaintAnimationWindow()
 {
     foreach (AnimEditor current in AnimEditor.GetAllAnimationWindows())
     {
         current.Repaint();
     }
 }
 // Can be used to ensure repaint of AnimationWindow
 public static void RepaintAnimationWindow()
 {
     foreach (AnimEditor animEditor in AnimEditor.GetAllAnimationWindows())
     {
         animEditor.Repaint();
     }
 }
 public static void RepaintAnimationWindow()
 {
     using (List <AnimEditor> .Enumerator enumerator = AnimEditor.GetAllAnimationWindows().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             enumerator.Current.Repaint();
         }
     }
 }