Fix autoplay animation starts from last editor state #8976

(cherry picked from commit c7ac90c97f)
This commit is contained in:
Poommetee Ketson 2017-05-29 18:56:35 +07:00 committed by Rémi Verschelde
parent cbca1d8343
commit 0aa6b4aac7

View File

@ -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_PROCESS: {