소스 검색

Ensure AnimationPlayer evaluate animations when autoplay is enabled and node becomes ready.

Fixes #83326.

The issue was introduced in the refactoring done in 1b95827d3ef244de322b0c16deb49fefe48ed1a1.
Martin Felis 1 년 전
부모
커밋
f04ec34b78
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      scene/animation/animation_player.cpp

+ 1 - 0
scene/animation/animation_player.cpp

@@ -151,6 +151,7 @@ void AnimationPlayer::_notification(int p_what) {
 			if (!Engine::get_singleton()->is_editor_hint() && animation_set.has(autoplay)) {
 				set_active(true);
 				play(autoplay);
+				seek(0, true);
 			}
 		} break;
 	}