instance-scene: make parent as edited_scene if no parent selected.
(cherry picked from commit 9eb3546f38
)
This commit is contained in:
parent
d27fbe10ad
commit
1c1ec81455
1 changed files with 5 additions and 1 deletions
|
@ -137,7 +137,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