Fix AnimationLibrary loading

This commit is contained in:
kobewi 2024-09-05 00:07:23 +02:00
parent b6223c0df0
commit d25e36b015

View File

@ -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"));