Skip to content

Commit

Permalink
Merge pull request #45359 from mrushyendra/export_pckzip
Browse files Browse the repository at this point in the history
Make use of export path when exporting PCK/ZIP
  • Loading branch information
akien-mga authored Jan 25, 2021
2 parents 887d3ee + 3a6c14e commit ad0f1c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions editor/project_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ad0f1c6

Please sign in to comment.