From 73bb2fcfb37892dda7d0f29cb809b7f412c4e167 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Fri, 19 Dec 2025 15:19:44 +0100 Subject: [PATCH] Editor: Fix export dialog icon for empty types --- editor/export/project_export.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/editor/export/project_export.cpp b/editor/export/project_export.cpp index 4de69955eff..ae6ed9b6f2e 100644 --- a/editor/export/project_export.cpp +++ b/editor/export/project_export.cpp @@ -1108,7 +1108,14 @@ bool ProjectExportDialog::_fill_tree(EditorFileSystemDirectory *p_dir, TreeItem String path = p_dir->get_file_path(i); - file->set_icon(0, EditorNode::get_singleton()->get_class_icon(type)); + Ref icon; + if (!type.is_empty()) { + icon = EditorNode::get_singleton()->get_class_icon(type); + } + if (icon.is_null()) { + icon = get_editor_theme_icon(SNAME("File")); + } + file->set_icon(0, icon); file->set_editable(0, true); file->set_metadata(0, path);