diff options
author | Zirak <zirakertan@gmail.com> | 2018-05-26 14:09:07 +0000 |
---|---|---|
committer | Zirak <zirakertan@gmail.com> | 2018-05-26 14:09:07 +0000 |
commit | 595d37706255e757a4eaa977fac75a53e801680e (patch) | |
tree | e6bbac8d6f6a4ae00951f7ee16983516d8907e68 /editor | |
parent | a71b0830ab79709ec7f6daa1c9a03c6de6e9f83b (diff) |
Instance scene at root by default
Fix bug in cdcfb9582e6e9f18df1475619f2ebe62b7f0bdce leading to the
root node not being selected by default.
Fix #18557.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/scene_tree_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index b82a036130..32b4e7f962 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) { |