summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-26 00:53:19 +0100
committerGitHub <noreply@github.com>2021-01-26 00:53:19 +0100
commitad0f1c66707429b35f368eabb1d581013a1d243d (patch)
tree7170edf535a630ac4229fc575159d108db689fb3
parent887d3ee733e40d22b7afda496731a2eb2805519d (diff)
parent3a6c14e5c4afb232c3f0ae28ae07306fab72b377 (diff)
Merge pull request #45359 from mrushyendra/export_pckzip
Make use of export path when exporting PCK/ZIP
-rw-r--r--editor/project_export.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp
index 4a8990daa9..4bcb616fbd 100644
--- a/editor/project_export.cpp
+++ b/editor/project_export.cpp
@@ -830,6 +830,12 @@ void ProjectExportDialog::_refresh_parent_checks(TreeItem *p_item) {
}
void ProjectExportDialog::_export_pck_zip() {
+ Ref<EditorExportPreset> current = get_current_preset();
+ ERR_FAIL_COND(current.is_null());
+
+ String dir = current->get_export_path().get_base_dir();
+ export_pck_zip->set_current_dir(dir);
+
export_pck_zip->popup_file_dialog();
}