From 9c7e647124694b1f3f6940c2b6e1b5f329b61a70 Mon Sep 17 00:00:00 2001 From: ordigdug Date: Fri, 13 Jul 2018 13:00:14 -0400 Subject: [PATCH] Fix -new inspector- remote debug view not changing to current scene after exiting game - Fixes #20075 --- editor/script_editor_debugger.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index 62848a60356..9ce0e973f71 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -1249,6 +1249,9 @@ void ScriptEditorDebugger::stop() { EditorNode::get_singleton()->get_scene_tree_dock()->hide_remote_tree(); EditorNode::get_singleton()->get_scene_tree_dock()->hide_tab_buttons(); + Node *node = editor->get_scene_tree_dock()->get_tree_editor()->get_selected(); + editor->push_item(node); + if (hide_on_stop) { if (is_visible_in_tree()) EditorNode::get_singleton()->hide_bottom_panel();