godotengine / godotengine/godot
Pressing Pause/Stop while paused in the Bezier Curve Editor view will cause the AnimationPlayer Editor to jump to the Track Editor view
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
4.2.1.stable and Master
### System information
Windows 11, Vulkan, Forward+
### Issue description
If you are in the bezier view of an animation and press the stop/pause button while the animation isn't playing, it will jump to the beginning of the animation correctly, but it will also jump out of the bezier view back into the track view.
https://github.com/godotengine/godot/assets/4955051/37857c08-43f6-42e4-8bb7-b18037badb86
This seems to be because the animation is reassigned when pressing the pause button.
Commenting out this line will resolve the issue, but I'm guessing the assignment happens for a reason.
https://github.com/godotengine/godot/blob/9b94c80e9aff2a4f363ae6d8e2bbe837aa5876bc/editor/plugins/animation_player_editor_plugin.cpp#L306
I believe the issue was introduced with this PR. https://github.com/godotengine/godot/pull/71321
### Steps to reproduce
1. Create an animation with Bezier tracks.
2. In the Bezier view press the Pause/Stop button while the animation is not playing.
3. Observe that the editor jumps back to the track view.
### Minimal reproduction project (MRP)
[bezier_stop_issue.zip](https://github.com/godotengine/godot/files/14511351/bezier_stop_issue.zip)
Contributor guide
Assessment
This issue has not been assessed yet.