Merge pull request #38089 from YeldhamDev/scenedock_local_fix

Fix "Local" button not being pressed in the Scene dock on first run
This commit is contained in:
Rémi Verschelde 2020-04-21 21:17:35 +02:00 committed by GitHub
commit bb9d89d78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_h_size_flags(SIZE_EXPAND_FILL);
edit_local->set_text(TTR("Local")); edit_local->set_text(TTR("Local"));
edit_local->set_toggle_mode(true); edit_local->set_toggle_mode(true);
edit_local->set_pressed(true);
edit_local->connect("pressed", callable_mp(this, &SceneTreeDock::_local_tree_selected)); edit_local->connect("pressed", callable_mp(this, &SceneTreeDock::_local_tree_selected));
remote_tree = nullptr; remote_tree = nullptr;