From 3c27aa6bcd3ec5aa287fe62f545e3297493d1bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81bastien=20Dunne=20Fulmer?= Date: Tue, 1 Apr 2025 22:29:11 +0100 Subject: [PATCH] Prioritise static value type for dictionary properties --- editor/editor_properties_array_dict.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index b10bd992377..4899eeebe67 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -1360,7 +1360,14 @@ void EditorPropertyDictionary::update_property() { Variant value; object->get_by_property_name(slot.prop_name, value); - Variant::Type value_type = value.get_type(); + + Variant::Type value_type; + + if (dict.is_typed_value() && slot.prop_key) { + value_type = value_subtype; + } else { + value_type = value.get_type(); + } // Check if the editor property needs to be updated. bool value_as_id = Object::cast_to(value);