1
0
Fork 0

Merge pull request #114202 from MichaeINeumann/fix-export-dialog-empty-type-icon

Editor: Fix export dialog icon for empty types
This commit is contained in:
Rémi Verschelde 2025-12-21 10:41:32 +01:00
commit feed71cdd9
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 8 additions and 1 deletions

View File

@ -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<Texture2D> 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);