Skip to content

Commit

Permalink
Merge pull request godotengine#26935 from qarmin/show_class_name_icon…
Browse files Browse the repository at this point in the history
…_in_tabs

Show in tabs custom class icons
  • Loading branch information
akien-mga authored Mar 16, 2019
2 parents 06ebf4c + 825a870 commit ffd115d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ffd115d

Please sign in to comment.