Merge pull request #20136 from ordigdug/Inspector-fix-remote-debug-view-changing-after-exit-game

Fix -inspector- remote debug view not changing to current scene a…
This commit is contained in:
Rémi Verschelde 2018-07-22 17:33:00 +02:00 committed by GitHub
commit 89e1b302b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();