From 3e86010bce3f2e19c5b83f6363e1c4474a75983b Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Mon, 18 May 2026 16:00:52 -0300 Subject: [PATCH] Fix export errors with non-resources --- editor/export/editor_export_platform.cpp | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index ec5ca65d81..ca8874df19 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -1706,14 +1706,19 @@ Error EditorExportPlatform::export_project_files(const Ref & } else { // Just store it as it comes. - // Customization only happens if plugins did not take care of it before. - bool force_binary = convert_text_to_binary && (path.has_extension("tres") || path.has_extension("tscn")); - String export_path = _export_customize(path, customize_resources_plugins, customize_scenes_plugins, export_cache, export_base_path, force_binary); + String export_path; + if (type.is_empty()) { + export_path = path; + } else { + // Customization only happens if plugins did not take care of it before. + bool force_binary = convert_text_to_binary && (path.has_extension("tres") || path.has_extension("tscn")); + export_path = _export_customize(path, customize_resources_plugins, customize_scenes_plugins, export_cache, export_base_path, force_binary); - if (export_path != path) { - // Add a remap entry. - path_remaps.push_back(path); - path_remaps.push_back(export_path); + if (export_path != path) { + // Add a remap entry. + path_remaps.push_back(path); + path_remaps.push_back(export_path); + } } Vector array = FileAccess::get_file_as_bytes(export_path);