instance-scene: make parent as edited_scene if no parent selected.
This commit is contained in:
parent
ed2f51b15f
commit
9eb3546f38
1 changed files with 5 additions and 1 deletions
|
@ -136,7 +136,11 @@ void SceneTreeDock::instance_scenes(const Vector<String> &p_files, Node *p_paren
|
|||
parent = scene_tree->get_selected();
|
||||
}
|
||||
|
||||
if (!parent || !edited_scene) {
|
||||
if (!parent) {
|
||||
parent = edited_scene;
|
||||
}
|
||||
|
||||
if (!parent) {
|
||||
if (p_files.size() == 1) {
|
||||
accept->set_text(TTR("No parent to instance a child at."));
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue