From c7ac90c97fbbaffcec81b13f5b17ef9b6e688a86 Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Mon, 29 May 2017 18:56:35 +0700 Subject: Fix autoplay animation starts from last editor state #8976 --- scene/animation/animation_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index c4ea42d461..543b64bd15 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -202,6 +202,7 @@ void AnimationPlayer::_notification(int p_what) { if (!get_tree()->is_editor_hint() && animation_set.has(autoplay)) { play(autoplay); set_autoplay(""); //this line is the fix for autoplay issues with animatio + _animation_process(0); } } break; case NOTIFICATION_INTERNAL_PROCESS: { -- cgit v1.2.3