Search Issue Tracker
Fixed in 2023.1.0a5
Fixed in 2022.2.X, 2023.1.X
Votes
0
Found in
2021.3.3f1
2022.1.3f1
2022.2.0a13
Issue ID
UUM-1438
Regression
No
Animation Window undo error in rec mode after preview offset
Getting an InvalidOperationException error after the following operations in the Animation window.
This can be reproduced with a single cube and two keys.
repro:
- create a cube with 2 keys moving the cube over time in the Animation window
or
- open attached project and test scene, open the Animation window and select cube in the scene
- scrub the animation window time ruler to activate Preview mode and set current time half way through the animation
- now offset the cube in the scene window, more than once
- now immediately click the red button to set the Animation window into record mode...
- Ctrl-Z (CMD-Z) to Undo the operation...
bug: error in the console
see arrached gif
Alternative repro:
- scrub the animation window time ruler to activate Preview mode and set current time half way through the animation
- now offset the cube in the scene window once
- RMB-Click on the animated property in the Inspector and select Add key
- Ctrl-Z (CMD-Z) to Undo the operation...
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Duplicated groups and incorrect grouping in UI Builder when using UxmlElementAttribute: libraryPath
- Asset name is not shown in the Undo History window when a sprite is modified
- Moving a Tab to a floating window fails when floating windows are docked next to each other
- Crash on UNITY_FT_Render_Glyph_Internal when Generating Font Atlas in the Font Asset Creator Window
Resolution Note (fix version 2023.1):
Animation: Fixed AnimationWindow throwing InvalidOperationException in some cases after performing Undo