Fix scene tree showing up when the root selection is present
(cherry picked from commit f30e4dbf54
)
This commit is contained in:
parent
12786bcbdb
commit
5495bbdd47
1 changed files with 3 additions and 1 deletions
|
@ -2696,7 +2696,9 @@ void SceneTreeDock::_remote_tree_selected() {
|
||||||
|
|
||||||
void SceneTreeDock::_local_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)
|
if (remote_tree)
|
||||||
remote_tree->hide();
|
remote_tree->hide();
|
||||||
edit_remote->set_pressed(false);
|
edit_remote->set_pressed(false);
|
||||||
|
|
Loading…
Reference in a new issue