public static void RepaintAnimationWindow() { foreach (AnimationWindow current in AnimationWindow.GetAllAnimationWindows()) { current.Repaint(); } }
static void KeyModified(ShortcutArguments args) { AnimationWindow animationWindow = AnimationWindow.GetAllAnimationWindows().Find(aw => (aw.state.previewing || aw == EditorWindow.focusedWindow)); if (animationWindow == null) { return; } var animEditor = animationWindow.animEditor; animEditor.SaveCurveEditorKeySelection(); animEditor.controlInterface.ProcessCandidates(); animEditor.UpdateSelectedKeysToCurveEditor(); animEditor.Repaint(); }
static void KeySelected(ShortcutArguments args) { AnimationWindow animationWindow = AnimationWindow.GetAllAnimationWindows().Find(aw => (aw.state.previewing || aw == EditorWindow.focusedWindow)); if (animationWindow == null) { return; } var animEditor = animationWindow.animEditor; animEditor.SaveCurveEditorKeySelection(); AnimationWindowUtility.AddSelectedKeyframes(animEditor.m_State, animEditor.controlInterface.time); animEditor.controlInterface.ClearCandidates(); animEditor.UpdateSelectedKeysToCurveEditor(); animEditor.Repaint(); }