diff options
author | Emmanuel Barroga <emmanuelbarroga@gmail.com> | 2019-09-08 22:03:38 -0700 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-26 08:10:18 +0200 |
commit | ecba42e287f4865f00e5752710dca19ea9712182 (patch) | |
tree | c60611809a9cb0ac0d7d3ef1716ba63080dbd1ff /editor/script_editor_debugger.cpp | |
parent | 084481b79da1515e2acd9be68e13aec67e35e80b (diff) |
Fix remote-tree not displaying the node type
Fixes the remote-tree not displaying the node's type like the local-tree does.
Diffstat (limited to 'editor/script_editor_debugger.cpp')
-rw-r--r-- | editor/script_editor_debugger.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 6a9dbb103a..e96dfdd7b9 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -423,10 +423,12 @@ void ScriptEditorDebugger::_scene_tree_request() { int ScriptEditorDebugger::_update_scene_tree(TreeItem *parent, const Array &nodes, int current_index) { String filter = EditorNode::get_singleton()->get_scene_tree_dock()->get_filter(); String item_text = nodes[current_index + 1]; + String item_type = nodes[current_index + 2]; bool keep = filter.is_subsequence_ofi(item_text); TreeItem *item = inspect_scene_tree->create_item(parent); item->set_text(0, item_text); + item->set_tooltip(0, TTR("Type:") + " " + item_type); ObjectID id = ObjectID(nodes[current_index + 3]); Ref<Texture> icon = EditorNode::get_singleton()->get_class_icon(nodes[current_index + 2], ""); if (icon.is_valid()) { |