From 69bca28271846eba406e74b33203481ef0942ec8 Mon Sep 17 00:00:00 2001 From: Mintormo Date: Mon, 5 Nov 2018 17:05:15 +0300 Subject: (#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. --- editor/filesystem_dock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index bab51202dc..828e608fa4 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1603,7 +1603,7 @@ void FileSystemDock::_file_option(int p_option, const Vector 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; -- cgit v1.2.3