From 533a8cabcc211e782f5178742201697dd4f50f13 Mon Sep 17 00:00:00 2001 From: Maganty Rushyendra Date: Fri, 26 Jun 2020 19:53:18 +0800 Subject: [PATCH] Ensures that export path is used when exporting PCK/ZIP (cherry picked from commit 3a6c14e5c4afb232c3f0ae28ae07306fab72b377) --- editor/project_export.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 1dee552b49b..5e2d68b44ae 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -767,6 +767,11 @@ void ProjectExportDialog::_refresh_parent_checks(TreeItem *p_item) { } void ProjectExportDialog::_export_pck_zip() { + Ref 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_centered_ratio(); }