We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 645af49 + a83ea6b commit b181ff2Copy full SHA for b181ff2
editor/editor_file_system.cpp
@@ -1978,7 +1978,10 @@ void EditorFileSystem::_update_file_icon_path(EditorFileSystemDirectory::FileInf
1978
}
1979
1980
if (icon_path.is_empty() && !file_info->type.is_empty()) {
1981
- icon_path = EditorNode::get_singleton()->get_class_icon(file_info->type)->get_path();
+ Ref<Texture2D> icon = EditorNode::get_singleton()->get_class_icon(file_info->type);
1982
+ if (icon.is_valid()) {
1983
+ icon_path = icon->get_path();
1984
+ }
1985
1986
1987
file_info->icon_path = icon_path;
0 commit comments