Merge pull request #96577 from KoBeWi/reject_StringName,_return_to_Variant
Fix AnimationLibrary loading
This commit is contained in:
commit
10c8e89052
1 changed files with 2 additions and 3 deletions
|
@ -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"));
|
||||
|
||||
|
|
Loading…
Reference in a new issue