Bläddra i källkod

Merge pull request #62336 from reduz/fix-reset-animation

Fix animation reset on save
Rémi Verschelde 3 år sedan
förälder
incheckning
dd6b427825
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      scene/animation/animation_player.cpp

+ 2 - 2
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);