instance-scene: make parent as edited_scene if no parent selected.
(cherry picked from commit 9eb3546f38)
This commit is contained in:
committed by
Rémi Verschelde
parent
d27fbe10ad
commit
1c1ec81455
@ -137,7 +137,11 @@ void SceneTreeDock::instance_scenes(const Vector<String> &p_files, Node *p_paren
|
|||||||
parent = scene_tree->get_selected();
|
parent = scene_tree->get_selected();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!parent || !edited_scene) {
|
if (!parent) {
|
||||||
|
parent = edited_scene;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!parent) {
|
||||||
if (p_files.size() == 1) {
|
if (p_files.size() == 1) {
|
||||||
accept->set_text(TTR("No parent to instance a child at."));
|
accept->set_text(TTR("No parent to instance a child at."));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user