(#23480) Wrong directory path in filesystem dock when creating script.

When creating script and file selected in filesystem dock,
between file name and directory path there is no "/" symbol.
This commit fix that bug.
This commit is contained in:
Mintormo 2018-11-05 17:05:15 +03:00
parent bf28c614b0
commit 69bca28271
1 changed files with 1 additions and 1 deletions

View File

@ -1603,7 +1603,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> p_selected)
if (!fpath.ends_with("/")) {
fpath = fpath.get_base_dir();
}
make_script_dialog_text->config("Node", fpath + "new_script.gd", false);
make_script_dialog_text->config("Node", fpath.plus_file("new_script.gd"), false);
make_script_dialog_text->popup_centered(Size2(300, 300) * EDSCALE);
} break;