diff options
author | Mintormo <fregnos@gmail.com> | 2018-11-05 17:05:15 +0300 |
---|---|---|
committer | Mintormo <fregnos@gmail.com> | 2018-11-05 17:27:48 +0300 |
commit | 69bca28271846eba406e74b33203481ef0942ec8 (patch) | |
tree | de3a97133ee963835bf0c68a31895e72c39da4ea /editor/filesystem_dock.cpp | |
parent | bf28c614b09b1dd5b176d9ed5b10ecb87efdd3d3 (diff) |
(#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.
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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; |