Merge pull request #95816 from matheusmdx/fix-autocomplete-icon

Fallback to theme icon when no custom icon is set in autocompletion
This commit is contained in:
Rémi Verschelde 2024-08-20 10:02:53 +02:00
commit fbbc527de6
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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: