summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorPoommetee Ketson <poommetee@protonmail.com>2017-05-29 18:56:35 +0700
committerPoommetee Ketson <poommetee@protonmail.com>2017-05-31 23:54:40 +0700
commitc7ac90c97fbbaffcec81b13f5b17ef9b6e688a86 (patch)
tree5db48ceb874e9843c57fd9e226549727e3bc7d3f /scene
parentd82cc20c2a6382697b02eb5c376266e119e8b047 (diff)
Fix autoplay animation starts from last editor state #8976
Diffstat (limited to 'scene')
-rw-r--r--scene/animation/animation_player.cpp1
1 files changed, 1 insertions, 0 deletions
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: {