diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-05 21:02:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 21:02:27 +0200 |
commit | a7ba22763139b29d825e0f4ef3e718533da069ea (patch) | |
tree | 63e38379d45985297d0e3250bdc3d6bd025c4f25 /platform/javascript/api | |
parent | 869a618e542252a42d0f5feab18a7916aec7109d (diff) | |
parent | 69f890ff11a15cc2c1aa651801a872505ab08c81 (diff) |
Merge pull request #52711 from m4gr3d/provide_getter_for_project_data_dir_master
Diffstat (limited to 'platform/javascript/api')
-rw-r--r-- | platform/javascript/api/javascript_tools_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/api/javascript_tools_editor_plugin.cpp b/platform/javascript/api/javascript_tools_editor_plugin.cpp index 45a2cd595a..df4c790755 100644 --- a/platform/javascript/api/javascript_tools_editor_plugin.cpp +++ b/platform/javascript/api/javascript_tools_editor_plugin.cpp @@ -131,9 +131,10 @@ void JavaScriptToolsEditorPlugin::_zip_recursive(String p_path, String p_base_pa } dir->list_dir_begin(); String cur = dir->get_next(); + String project_data_dir_name = ProjectSettings::get_singleton()->get_project_data_dir_name(); while (!cur.is_empty()) { String cs = p_path.plus_file(cur); - if (cur == "." || cur == ".." || cur == ".import") { + if (cur == "." || cur == ".." || cur == project_data_dir_name) { // Skip } else if (dir->current_is_dir()) { String path = cs.replace_first(p_base_path, "") + "/"; |