diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-14 12:07:10 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-05-14 12:07:10 +0200 |
| commit | 147e73732849eab3ff328135c8a4cf1af5fd08ec (patch) | |
| tree | daf810abad99433feda922ddc54e279a34fa4bbb | |
| parent | d6eab9f5df4318e2c700b99aead3dd0ae55f97b1 (diff) | |
| parent | c749affef31dc12a691c92aba6cd870edda24b9e (diff) | |
| download | redot-engine-147e73732849eab3ff328135c8a4cf1af5fd08ec.tar.gz | |
Merge pull request #91923 from hakro/fix-completion-custom-icon
Show custom icons in autocompletion suggestions
| -rw-r--r-- | editor/code_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index 10b8a81992..2a398c65d8 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -33,6 +33,7 @@ #include "core/input/input.h" #include "core/os/keyboard.h" #include "core/string/string_builder.h" +#include "editor/editor_node.h" #include "editor/editor_settings.h" #include "editor/editor_string_names.h" #include "editor/plugins/script_editor_plugin.h" @@ -971,7 +972,7 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptLanguage::CodeCo if (has_theme_icon(p_option.display, EditorStringName(EditorIcons))) { tex = get_editor_theme_icon(p_option.display); } else { - tex = get_editor_theme_icon(SNAME("Object")); + tex = EditorNode::get_singleton()->get_class_icon(p_option.display); } } break; case ScriptLanguage::CODE_COMPLETION_KIND_ENUM: |
