Merge pull request #31478 from kubecz3k/anim-fix

fix animation freeze when playing animation from another AnimationPlayer
This commit is contained in:
Rémi Verschelde 2019-08-20 10:58:00 +02:00 committed by GitHub
commit 1b9d4e15de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1200,7 +1200,9 @@ void AnimationPlayer::play(const StringName &p_name, float p_custom_blend, float
}
}
_stop_playing_caches();
if (get_current_animation() != p_name) {
_stop_playing_caches();
}
c.current.from = &animation_set[name];