mirror of
https://github.com/godotengine/godot.git
synced 2025-03-13 23:41:08 +08:00
Merge pull request #18587 from AlexHoratio/master
Defaults to instancing child at tree root when none selected
This commit is contained in:
commit
9b0c487dd4
@ -107,7 +107,12 @@ void SceneTreeDock::_unhandled_key_input(Ref<InputEvent> p_event) {
|
||||
void SceneTreeDock::instance(const String &p_file) {
|
||||
|
||||
Node *parent = scene_tree->get_selected();
|
||||
if (!parent || !edited_scene) {
|
||||
|
||||
if (!parent) {
|
||||
Node *parent = edited_scene;
|
||||
};
|
||||
|
||||
if (!edited_scene) {
|
||||
|
||||
current_option = -1;
|
||||
accept->get_ok()->set_text(TTR("OK :("));
|
||||
|
Loading…
x
Reference in New Issue
Block a user