mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Export path is the only path to be saved as a relative path
Also reverts 90b2415343
This commit is contained in:
@@ -931,17 +931,8 @@ void ProjectExportDialog::_export_project() {
|
||||
export_project->add_filter("*." + extension_list[i] + " ; " + platform->get_name() + " Export");
|
||||
}
|
||||
|
||||
String current_preset_export_path = current->get_export_path();
|
||||
|
||||
if (current_preset_export_path != "") {
|
||||
|
||||
if (!DirAccess::exists(current_preset_export_path.get_base_dir())) {
|
||||
|
||||
DirAccessRef da(DirAccess::create(DirAccess::ACCESS_FILESYSTEM));
|
||||
da->make_dir_recursive(current_preset_export_path.get_base_dir());
|
||||
}
|
||||
|
||||
export_project->set_current_path(current_preset_export_path);
|
||||
if (current->get_export_path() != "") {
|
||||
export_project->set_current_path(current->get_export_path());
|
||||
} else {
|
||||
if (extension_list.size() >= 1) {
|
||||
export_project->set_current_file(default_filename + "." + extension_list[0]);
|
||||
|
||||
Reference in New Issue
Block a user