Merge pull request #97760 from EAinsley/fix#97714

Fix error when stopping empty animation player.
This commit is contained in:
Rémi Verschelde 2024-10-03 15:39:30 +02:00
commit 5ccbf6e4c7
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -777,7 +777,7 @@ void AnimationPlayer::_stop_internal(bool p_reset, bool p_keep_state) {
_clear_caches(); _clear_caches();
Playback &c = playback; Playback &c = playback;
// c.blend.clear(); // c.blend.clear();
double start = get_section_start_time(); double start = c.current.from ? get_section_start_time() : 0;
if (p_reset) { if (p_reset) {
c.blend.clear(); c.blend.clear();
if (p_keep_state) { if (p_keep_state) {