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

Make AnimationPlaybackTrack keep state when stopping
This commit is contained in:
Rémi Verschelde 2023-11-28 08:28:25 +01:00 committed by GitHub
commit a008a85443
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();