diff options
author | kobewi <kobewi4e@gmail.com> | 2022-04-22 20:37:28 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-04-22 22:28:15 +0200 |
commit | cf74b3674031f30f9f28fd0d673f2d40fe246075 (patch) | |
tree | 52d0e2ab2558347b81df3aa3901f21fc3dc93731 /scene | |
parent | f4b0c7a1ea8d86c1dfd96478ca12ad1360903d9d (diff) |
Fix RESET animation not being created
Diffstat (limited to 'scene')
-rw-r--r-- | scene/animation/animation_tree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_tree.cpp b/scene/animation/animation_tree.cpp index 0996eb9f9f..8d21ec8078 100644 --- a/scene/animation/animation_tree.cpp +++ b/scene/animation/animation_tree.cpp @@ -541,9 +541,9 @@ bool AnimationTree::_update_caches(AnimationPlayer *player) { player->get_animation_list(&sname); Ref<Animation> reset_anim; - bool has_reset_anim = player->has_animation("RESET"); + bool has_reset_anim = player->has_animation(SceneStringNames::get_singleton()->RESET); if (has_reset_anim) { - reset_anim = player->get_animation("RESET"); + reset_anim = player->get_animation(SceneStringNames::get_singleton()->RESET); } for (const StringName &E : sname) { Ref<Animation> anim = player->get_animation(E); |