summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas <Hinsbart@users.noreply.github.com>2017-06-01 21:05:41 +0200
committerGitHub <noreply@github.com>2017-06-01 21:05:41 +0200
commit5dd52320cb5f85cf9cab0be18bf105f46344200d (patch)
tree6844b27475e05430773f5a34ae7b95c5191f9dd7
parentd58a58402e780d2df27a199367bd261c9bf0d6dd (diff)
parentc7ac90c97fbbaffcec81b13f5b17ef9b6e688a86 (diff)
Merge pull request #8982 from noshyaar/pr-anim
Fix autoplay animation starts from last editor state #8976
-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: {