Reproduction steps:
1. Open the attached “IN-96214.zip” project
2. Open the “SampleScene”
3. Click on the “GradientObject” GameObject in the Hierarchy
4. In the Inspector, click on the Gradient bar to open the Gradient Editor
5. Slide the pink and green markers to the right to change the Gradient
6. Press CTRL+Z to undo
7. Observe the Gradient Editor
Expected result: The actions are correctly undone
Actual result: The gradient changes but the marker is not moved to the previous position on the first undo
Reproducible with: 2022.2.0a9, 2022.3.59f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Not reproducible with: 2021.3.49f1, 2022.2.0a8
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- Sometimes pressing CTRL+Z does not undo anything at all. Usually after pressing CTRL+Z too many times, so that the “GradientObject” GameObject gets unselected, but the Gradient Editor remains open and active
- Other Gradient Editors, for example the “Color over Lifetime” in the Particle System, work as expected