Merge pull request #91242 from TokageItLab/player-activating

Make activating on ready in AnimationPlayer respect the property value
This commit is contained in:
Rémi Verschelde 2024-04-29 10:10:28 +02:00
commit 164f28e066
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -149,7 +149,7 @@ void AnimationPlayer::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_READY: {
if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
set_active(true);
set_active(active);
play(autoplay);
_check_immediately_after_start();
}