You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fallback to theme icon when no custom icon is set in autocompletion
This commit is contained in:
@@ -994,6 +994,9 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptLanguage::CodeCo
|
|||||||
tex = get_editor_theme_icon(p_option.display);
|
tex = get_editor_theme_icon(p_option.display);
|
||||||
} else {
|
} else {
|
||||||
tex = EditorNode::get_singleton()->get_class_icon(p_option.display);
|
tex = EditorNode::get_singleton()->get_class_icon(p_option.display);
|
||||||
|
if (!tex.is_valid()) {
|
||||||
|
tex = get_editor_theme_icon(SNAME("Object"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case ScriptLanguage::CODE_COMPLETION_KIND_ENUM:
|
case ScriptLanguage::CODE_COMPLETION_KIND_ENUM:
|
||||||
|
|||||||
Reference in New Issue
Block a user