mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Add missing SNAME macro optimization in some function calls
This commit is contained in:
parent
fd0d2dcabf
commit
1ce81dc5f2
27 changed files with 217 additions and 217 deletions
|
|
@ -884,8 +884,8 @@ Ref<Texture2D> CodeTextEditor::_get_completion_icon(const ScriptCodeCompletionOp
|
|||
Ref<Texture2D> tex;
|
||||
switch (p_option.kind) {
|
||||
case ScriptCodeCompletionOption::KIND_CLASS: {
|
||||
if (has_theme_icon(p_option.display, "EditorIcons")) {
|
||||
tex = get_theme_icon(p_option.display, "EditorIcons");
|
||||
if (has_theme_icon(p_option.display, SNAME("EditorIcons"))) {
|
||||
tex = get_theme_icon(p_option.display, SNAME("EditorIcons"));
|
||||
} else {
|
||||
tex = get_theme_icon(SNAME("Object"), SNAME("EditorIcons"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue