From 595d37706255e757a4eaa977fac75a53e801680e Mon Sep 17 00:00:00 2001 From: Zirak Date: Sat, 26 May 2018 14:09:07 +0000 Subject: [PATCH] Instance scene at root by default Fix bug in cdcfb9582e6e9f18df1475619f2ebe62b7f0bdce leading to the root node not being selected by default. Fix #18557. --- editor/scene_tree_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index b82a0361307..32b4e7f9622 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -113,7 +113,7 @@ void SceneTreeDock::instance(const String &p_file) { Node *parent = scene_tree->get_selected(); if (!parent) { - Node *parent = edited_scene; + parent = edited_scene; }; if (!edited_scene) {