From 45f089a14372e0f1883c980444addd1c5ae8597d Mon Sep 17 00:00:00 2001 From: StarryWorm <41305715+StarryWorm@users.noreply.github.com> Date: Sat, 6 Sep 2025 10:01:57 -0400 Subject: [PATCH] Enable objects stored as dictionary keys to be selected in inspector. Currently, when using the stack trace or the remote scene tree and selecting an object containing a dictionary, secondary objects that are stored as values in the dictionary can be opened in inspector by clicking on them. However, attempting to open the same secondary object if it is stored as a key in the dictionary will result in nothing happening. This is fixed by connecting keys to the "object_id_selected" signal the same way values are connected. --- editor/inspector/editor_properties_array_dict.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/inspector/editor_properties_array_dict.cpp b/editor/inspector/editor_properties_array_dict.cpp index 6a8b1942bf..2842a04c75 100644 --- a/editor/inspector/editor_properties_array_dict.cpp +++ b/editor/inspector/editor_properties_array_dict.cpp @@ -1345,6 +1345,7 @@ void EditorPropertyDictionary::update_property() { } new_prop->set_read_only(true); new_prop->set_selectable(false); + new_prop->connect(SNAME("object_id_selected"), callable_mp(this, &EditorPropertyDictionary::_object_id_selected)); new_prop->set_focus_mode(Control::FOCUS_ACCESSIBILITY); new_prop->set_draw_background(false); new_prop->set_use_folding(is_using_folding());