Browse Source

Merge pull request #100932 from ajreckof/Fix-dictionary-editor-steals-focus-when-recreating-full-inspector-

Fix dictionary editor steals focus when reloading script.
Rémi Verschelde 8 months ago
parent
commit
88babbdce2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/editor_properties_array_dict.cpp

+ 1 - 1
editor/editor_properties_array_dict.cpp

@@ -1287,7 +1287,7 @@ EditorPropertyDictionary::EditorPropertyDictionary() {
 	change_type = memnew(PopupMenu);
 	change_type = memnew(PopupMenu);
 	add_child(change_type);
 	add_child(change_type);
 	change_type->connect(SceneStringName(id_pressed), callable_mp(this, &EditorPropertyDictionary::_change_type_menu));
 	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;
 	has_borders = true;
 
 
 	key_subtype = Variant::NIL;
 	key_subtype = Variant::NIL;