diff options
author | kobewi <kobewi4e@gmail.com> | 2024-09-05 00:07:23 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-09-05 00:07:23 +0200 |
commit | d25e36b0153c5f5bfb94bce5e98eaa63489194a1 (patch) | |
tree | 60d44d8f977df65c0d56fb3f9462b62b32044d03 /scene/animation | |
parent | b6223c0df0300ba2db17b5742c349f13c33f8884 (diff) | |
download | redot-engine-d25e36b0153c5f5bfb94bce5e98eaa63489194a1.tar.gz |
Fix AnimationLibrary loading
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_mixer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index 0ab4dbe470..1c5f40f56e 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -81,9 +81,8 @@ bool AnimationMixer::_set(const StringName &p_name, const Variant &p_value) { List<Variant> keys; d.get_key_list(&keys); for (const Variant &K : keys) { - StringName lib_name = K; - Ref<AnimationLibrary> lib = d[lib_name]; - add_animation_library(lib_name, lib); + Ref<AnimationLibrary> lib = d[K]; + add_animation_library(K, lib); } emit_signal(SNAME("animation_libraries_updated")); |