summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-11-28 08:28:25 +0100
committerGitHub <noreply@github.com>2023-11-28 08:28:25 +0100
commita008a85443cf95f8188fa68471c78d5597b3df68 (patch)
tree5d344c8f0c9b439883d86e7c32de64b6c4803858
parentd6dd1de64409a74e27abc92d5756799c0b60b630 (diff)
parentd3a429962f304dcbf6cc66721b54e7fd787073a6 (diff)
downloadredot-engine-a008a85443cf95f8188fa68471c78d5597b3df68.tar.gz
Merge pull request #85411 from TokageItLab/fix-animpbtrack-stop
Make AnimationPlaybackTrack keep state when stopping
-rw-r--r--scene/animation/animation_mixer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp
index dbd790003a..479311e966 100644
--- a/scene/animation/animation_mixer.cpp
+++ b/scene/animation/animation_mixer.cpp
@@ -563,7 +563,7 @@ void AnimationMixer::_clear_audio_streams() {
void AnimationMixer::_clear_playing_caches() {
for (const TrackCache *E : playing_caches) {
if (ObjectDB::get_instance(E->object_id)) {
- E->object->call(SNAME("stop"));
+ E->object->call(SNAME("stop"), true);
}
}
playing_caches.clear();