summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-04-21 15:03:42 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-04-21 15:03:42 -0300
commitf1244ce944c2ccffac7a30533a914ffa25bbb7d0 (patch)
treeff9dc3525a97156a6b19973bd8940e596c4b167d
parent4f03e302a7aacd73760d592410502396588a0c1d (diff)
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;