diff options
| author | Hein-Pieter van Braam | 2018-04-29 18:29:32 +0200 |
|---|---|---|
| committer | GitHub | 2018-04-29 18:29:32 +0200 |
| commit | 3bd3f41465a604caa4a826dbc53537435fb37933 (patch) | |
| tree | e7c04fc6e5a0dfcc31ce877a1885641a12094210 /editor/project_export.cpp | |
| parent | d0183effe02edb973e44e5ad8b3608d861f86490 (diff) | |
| parent | 68b35de2b6ea23178061f65bc28b4f73e0c65f35 (diff) | |
| download | godot-3bd3f41465a604caa4a826dbc53537435fb37933.tar.gz godot-3bd3f41465a604caa4a826dbc53537435fb37933.tar.zst godot-3bd3f41465a604caa4a826dbc53537435fb37933.zip | |
Merge pull request #18455 from neikeq/export-pck-zip-debug
Make 'Export PCK/ZIP' work well with EditorExportPlugin
Diffstat (limited to '')
| -rw-r--r-- | editor/project_export.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/editor/project_export.cpp b/editor/project_export.cpp index 7e9a88414..8b8c75621 100644 --- a/editor/project_export.cpp +++ b/editor/project_export.cpp @@ -703,9 +703,9 @@ void ProjectExportDialog::_export_pck_zip_selected(const String &p_path) { ERR_FAIL_COND(platform.is_null()); if (p_path.ends_with(".zip")) { - platform->save_zip(current, p_path); + platform->export_zip(current, export_pck_zip_debug->is_pressed(), p_path); } else if (p_path.ends_with(".pck")) { - platform->save_pack(current, p_path); + platform->export_pack(current, export_pck_zip_debug->is_pressed(), p_path); } } @@ -981,6 +981,11 @@ ProjectExportDialog::ProjectExportDialog() { export_debug->set_pressed(true); export_project->get_vbox()->add_child(export_debug); + export_pck_zip_debug = memnew(CheckButton); + export_pck_zip_debug->set_text(TTR("Export With Debug")); + export_pck_zip_debug->set_pressed(true); + export_pck_zip->get_vbox()->add_child(export_pck_zip_debug); + set_hide_on_ok(false); editor_icons = "EditorIcons"; |
