浏览代码

Ensures that export path is used when exporting PCK/ZIP

Maganty Rushyendra 5 年之前
父节点
当前提交
3a6c14e5c4
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      editor/project_export.cpp

+ 6 - 0
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();
 }