Browse Source

Merge pull request #91242 from TokageItLab/player-activating

Make activating on ready in AnimationPlayer respect the property value
Rémi Verschelde 1 year ago
parent
commit
164f28e066
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/animation/animation_player.cpp

+ 1 - 1
scene/animation/animation_player.cpp

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