Browse Source

Instance scene at root by default

Fix bug in cdcfb9582e6e9f18df1475619f2ebe62b7f0bdce leading to the
root node not being selected by default.

Fix #18557.
Zirak 7 years ago
parent
commit
595d377062
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/scene_tree_dock.cpp

+ 1 - 1
editor/scene_tree_dock.cpp

@@ -113,7 +113,7 @@ void SceneTreeDock::instance(const String &p_file) {
 	Node *parent = scene_tree->get_selected();
 	Node *parent = scene_tree->get_selected();
 
 
 	if (!parent) {
 	if (!parent) {
-		Node *parent = edited_scene;
+		parent = edited_scene;
 	};
 	};
 
 
 	if (!edited_scene) {
 	if (!edited_scene) {