Skip to content

Commit 45f089a

Browse files
committed
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.
1 parent 3c7f9b9 commit 45f089a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/inspector/editor_properties_array_dict.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,7 @@ void EditorPropertyDictionary::update_property() {
13451345
}
13461346
new_prop->set_read_only(true);
13471347
new_prop->set_selectable(false);
1348+
new_prop->connect(SNAME("object_id_selected"), callable_mp(this, &EditorPropertyDictionary::_object_id_selected));
13481349
new_prop->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
13491350
new_prop->set_draw_background(false);
13501351
new_prop->set_use_folding(is_using_folding());

0 commit comments

Comments
 (0)