diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-06-23 09:11:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 09:11:26 +0200 |
commit | dd6b427825f67bb28173e841be9e2e1f69e99c25 (patch) | |
tree | ec46b4b4f2ed78282cfd6f5efa758298d0ea1169 | |
parent | c5f9a43323b5b1ea507b9812c68aa2869016edfe (diff) | |
parent | df6cd650d1ff92be213bc76cb17ac956c90df7ab (diff) |
Merge pull request #62336 from reduz/fix-reset-animation
Fix animation reset on save
-rw-r--r-- | scene/animation/animation_player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 5d471c9e84..e3c83e3a9e 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -1991,8 +1991,8 @@ Ref<AnimatedValuesBackup> AnimationPlayer::apply_reset(bool p_user_initiated) { Ref<AnimationLibrary> al; al.instantiate(); al->add_animation(SceneStringNames::get_singleton()->RESET, reset_anim); - aux_player->add_animation_library("default", al); - aux_player->set_assigned_animation("default/" + SceneStringNames::get_singleton()->RESET); + aux_player->add_animation_library("", al); + aux_player->set_assigned_animation(SceneStringNames::get_singleton()->RESET); // Forcing the use of the original root because the scene where original player belongs may be not the active one Node *root = get_node(get_root()); Ref<AnimatedValuesBackup> old_values = aux_player->backup_animated_values(root); |