Browse Source

(#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.
Mintormo 6 years ago
parent
commit
69bca28271
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/filesystem_dock.cpp

+ 1 - 1
editor/filesystem_dock.cpp

@@ -1603,7 +1603,7 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> p_selected)
 			if (!fpath.ends_with("/")) {
 			if (!fpath.ends_with("/")) {
 				fpath = fpath.get_base_dir();
 				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);
 			make_script_dialog_text->popup_centered(Size2(300, 300) * EDSCALE);
 		} break;
 		} break;