diff options
author | Maganty Rushyendra <mrushyendra@yahoo.com.sg> | 2020-06-26 19:53:18 +0800 |
---|---|---|
committer | Maganty Rushyendra <mrushyendra@yahoo.com.sg> | 2021-01-23 17:33:36 +0800 |
commit | 3a6c14e5c4afb232c3f0ae28ae07306fab72b377 (patch) | |
tree | 082e72581f29d29b3f25e54a34697ba5b686430f /editor | |
parent | 2a3e771f4cb2b01d6cbd4bf09e1fbd27e3b019c0 (diff) |
Ensures that export path is used when exporting PCK/ZIP
Diffstat (limited to 'editor')
-rw-r--r-- | editor/project_export.cpp | 6 |
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(); } |