instance-scene: make parent as edited_scene if no parent selected.

(cherry picked from commit 9eb3546f38)
This commit is contained in:
Bhuvan Vemula 2021-04-04 08:50:18 +05:30 committed by Rémi Verschelde
parent d27fbe10ad
commit 1c1ec81455
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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