Merge pull request #26935 from qarmin/show_class_name_icon_in_tabs

Show in tabs custom class icons
This commit is contained in:
Rémi Verschelde 2019-03-16 11:04:03 -07:00 committed by GitHub
commit ffd115dd6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,10 +136,10 @@ void EditorNode::_update_scene_tabs() {
Ref<Texture> script_icon = gui_base->get_icon("Script", "EditorIcons");
for (int i = 0; i < editor_data.get_edited_scene_count(); i++) {
String type = editor_data.get_scene_type(i);
Node *type_node = editor_data.get_edited_scene_root(i);
Ref<Texture> icon;
if (type != String()) {
icon = get_class_icon(type, "Node");
if (type_node) {
icon = EditorNode::get_singleton()->get_object_icon(type_node, "Node");
}
int current = editor_data.get_edited_scene();