Fix "Local" button not being pressed in the Scene dock on first run

This commit is contained in:
Michael Alexsander 2020-04-21 15:03:42 -03:00
parent 4f03e302a7
commit f1244ce944
1 changed files with 1 additions and 0 deletions

View File

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