Skip to content

Commit

Permalink
Fallback to theme icon when no custom icon is set in autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmdx committed Aug 19, 2024
1 parent da5f398 commit e8254dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/code_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,9 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptLanguage::CodeCo
tex = get_editor_theme_icon(p_option.display);
} else {
tex = EditorNode::get_singleton()->get_class_icon(p_option.display);
if (!tex.is_valid()) {
tex = get_editor_theme_icon(SNAME("Object"));
}
}
} break;
case ScriptLanguage::CODE_COMPLETION_KIND_ENUM:
Expand Down

0 comments on commit e8254dc

Please sign in to comment.