mirror of
https://github.com/godotengine/godot.git
synced 2025-11-03 15:11:19 +00:00
Refactor editor icon retrieval
This commit is contained in:
parent
06c8b5a4ff
commit
5436abefe4
29 changed files with 192 additions and 252 deletions
|
|
@ -238,8 +238,7 @@ void ResourcePreloaderEditor::_update_library() {
|
|||
ti->set_text(2, type);
|
||||
ti->set_selectable(2, false);
|
||||
|
||||
if (has_icon(type, "EditorIcons"))
|
||||
ti->set_icon(2, get_icon(type, "EditorIcons"));
|
||||
ti->set_icon(2, EditorNode::get_singleton()->get_class_icon(type, ""));
|
||||
}
|
||||
|
||||
//player->add_resource("default",resource);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue