Browse Source

Merge pull request #85411 from TokageItLab/fix-animpbtrack-stop

Make AnimationPlaybackTrack keep state when stopping
Rémi Verschelde 1 year ago
parent
commit
a008a85443
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/animation/animation_mixer.cpp

+ 1 - 1
scene/animation/animation_mixer.cpp

@@ -563,7 +563,7 @@ void AnimationMixer::_clear_audio_streams() {
 void AnimationMixer::_clear_playing_caches() {
 void AnimationMixer::_clear_playing_caches() {
 	for (const TrackCache *E : playing_caches) {
 	for (const TrackCache *E : playing_caches) {
 		if (ObjectDB::get_instance(E->object_id)) {
 		if (ObjectDB::get_instance(E->object_id)) {
-			E->object->call(SNAME("stop"));
+			E->object->call(SNAME("stop"), true);
 		}
 		}
 	}
 	}
 	playing_caches.clear();
 	playing_caches.clear();