Ensures that export path is used when exporting PCK/ZIP

This commit is contained in:
Maganty Rushyendra 2020-06-26 19:53:18 +08:00
parent 2a3e771f4c
commit 3a6c14e5c4

View file

@ -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();
}