Instance scene at root by default

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

Fix #18557.
This commit is contained in:
Zirak 2018-05-26 14:09:07 +00:00
parent a71b0830ab
commit 595d377062

View File

@ -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) {