Merge pull request #23526 from Mintormo/fix-23480

(#23480) Fixed problem with wrong directory path
This commit is contained in:
Rémi Verschelde 2018-11-06 22:14:14 +01:00 committed by GitHub
commit 90d43084c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;