summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-04-21 21:17:35 +0200
committerGitHub <noreply@github.com>2020-04-21 21:17:35 +0200
commitbb9d89d78c08f86732c19a9c8e8f9f32f587b43a (patch)
treee63cef56ffd472c87d458ccec043e9c6de7035bb
parentcb1ae08c14e02ce29fb71ae40ae657f1d30a0422 (diff)
parentf1244ce944c2ccffac7a30533a914ffa25bbb7d0 (diff)
Merge pull request #38089 from YeldhamDev/scenedock_local_fix
Fix "Local" button not being pressed in the Scene dock on first run
-rw-r--r--editor/scene_tree_dock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp
index a729f62123..4041256dd5 100644
--- a/editor/scene_tree_dock.cpp
+++ b/editor/scene_tree_dock.cpp
@@ -2867,6 +2867,7 @@ SceneTreeDock::SceneTreeDock(EditorNode *p_editor, Node *p_scene_root, EditorSel
edit_local->set_h_size_flags(SIZE_EXPAND_FILL);
edit_local->set_text(TTR("Local"));
edit_local->set_toggle_mode(true);
+ edit_local->set_pressed(true);
edit_local->connect("pressed", callable_mp(this, &SceneTreeDock::_local_tree_selected));
remote_tree = nullptr;