From ba3f2bf4a3d53fd92f47678b93a20237066df0c6 Mon Sep 17 00:00:00 2001 From: ajreckof Date: Mon, 30 Dec 2024 16:27:05 +0100 Subject: [PATCH] Fix dictionary editor steals focus when reloading script. --- editor/editor_properties_array_dict.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_properties_array_dict.cpp b/editor/editor_properties_array_dict.cpp index 6d56a3f2541..6442a04f2a3 100644 --- a/editor/editor_properties_array_dict.cpp +++ b/editor/editor_properties_array_dict.cpp @@ -1287,7 +1287,7 @@ EditorPropertyDictionary::EditorPropertyDictionary() { change_type = memnew(PopupMenu); add_child(change_type); change_type->connect(SceneStringName(id_pressed), callable_mp(this, &EditorPropertyDictionary::_change_type_menu)); - changing_type_index = -1; + changing_type_index = EditorPropertyDictionaryObject::NOT_CHANGING_TYPE; has_borders = true; key_subtype = Variant::NIL;