mirror of
https://github.com/godotengine/godot
synced 2024-11-02 11:59:10 +00:00
Merge pull request #8982 from noshyaar/pr-anim
Fix autoplay animation starts from last editor state #8976
This commit is contained in:
commit
5dd52320cb
1 changed files with 1 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue