Not signed in
Copyright © 2026 Unity Technologies
Animation: Fixed AnimationWindow throwing InvalidOperationException in some cases after performing Undo
internally reported low priority bug, no backport required
internally reported low priority bug, no backport required
internally reported low priority bug, no backport required
Getting an InvalidOperationException error after the following operations in the Animation window.
This can be reproduced with a single cube and two keys.
repro:
see arrached gif
Alternative repro:
InvalidOperationException: AnimationMode.AddCandidates may only be called when recording candidates. See AnimationMode.StartCandidateRecording.
UnityEditorInternal.AnimationWindowControl.ResampleAnimation (UnityEditorInternal.AnimationWindowControl+ResampleFlags flags) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowControl.cs:686)
UnityEditorInternal.AnimationWindowControl.ResampleAnimation () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowControl.cs:628)
UnityEditorInternal.AnimationWindowState.UndoRedoPerformed () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Animation/AnimationWindow/AnimationWindowState.cs:432)
UnityEditor.Undo.Internal_CallUndoRedoPerformed () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Undo/Undo.bindings.cs:237)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler() (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:428)
this bug is present in all versions back to at least 2019.4 and current 2021.2
Sign in to see your voted issues