From 006c9bb39ac4b2befe869992ce5d30b7b0ac9cb6 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 6 May 2025 00:31:26 +0200 Subject: [PATCH] Use a type-hinted dictionary for AnimationLibrary's `libraries` property This is done at a editor property hint level so that it doesn't break compatibility. In other words, the actual `libraries` property exposed to the scripting API remains an untyped Dictionary. --- scene/animation/animation_mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_mixer.cpp b/scene/animation/animation_mixer.cpp index 5ae1bb7233..6662a10d72 100644 --- a/scene/animation/animation_mixer.cpp +++ b/scene/animation/animation_mixer.cpp @@ -108,7 +108,7 @@ bool AnimationMixer::_get(const StringName &p_name, Variant &r_ret) const { void AnimationMixer::_get_property_list(List *p_list) const { List anim_names; - anim_names.push_back(PropertyInfo(Variant::DICTIONARY, PNAME("libraries"))); + anim_names.push_back(PropertyInfo(Variant::DICTIONARY, PNAME("libraries"), PROPERTY_HINT_DICTIONARY_TYPE, "StringName;AnimationLibrary")); for (const PropertyInfo &E : anim_names) { p_list->push_back(E); }