Merge pull request #96577 from KoBeWi/reject_StringName,_return_to_Variant

Fix AnimationLibrary loading
This commit is contained in:
Rémi Verschelde 2024-09-05 17:44:26 +02:00
commit 10c8e89052
No known key found for this signature in database
GPG key ID: C3336907360768E1

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