Steps to reproduce:
- Create and open a new project
- Create an Animation Controller Asset
- Open it in Animator
- Add another layer "New Layer"
- Move the new layer up
- Immediately after, press on the cog on the "Base Layer" and change any setting (notice the selection reset back to the "Top")
- Undo a few times
- Observe the Animator and Console
Actual results: Animator window breaks and MissingReferenceExceptions are thrown
Expected results: Animator handles the undo correctly
Reproducible with versions: 2023.1.0a10, 6000.0.73f1, 6000.3.14f1, 6000.4.5f1, 6000.5.0b6, 6000.6.0a3
Tested on (OS): Windows 11 Pro (25H2)
Notes:
- The cause is likely due to the selection change without creating an undoable event