Merge pull request #39424 from YeldhamDev/scene_root_select

Fix scene tree showing up when the root selection is present
This commit is contained in:
Rémi Verschelde 2020-06-10 10:38:22 +02:00 committed by GitHub
commit abae0757ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -2658,7 +2658,9 @@ void SceneTreeDock::_remote_tree_selected() {
}
void SceneTreeDock::_local_tree_selected() {
scene_tree->show();
if (!bool(EDITOR_GET("interface/editors/show_scene_tree_root_selection")) || get_tree()->get_edited_scene_root() != nullptr) {
scene_tree->show();
}
if (remote_tree) {
remote_tree->hide();
}