mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +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
|
@ -398,10 +398,10 @@ Ref<Texture2D> ScriptTextEditor::get_theme_icon() {
|
|||
icon_name += "Internal";
|
||||
}
|
||||
|
||||
if (get_parent_control()->has_theme_icon(icon_name, "EditorIcons")) {
|
||||
return get_parent_control()->get_theme_icon(icon_name, "EditorIcons");
|
||||
} else if (get_parent_control()->has_theme_icon(script->get_class(), "EditorIcons")) {
|
||||
return get_parent_control()->get_theme_icon(script->get_class(), "EditorIcons");
|
||||
if (get_parent_control()->has_theme_icon(icon_name, SNAME("EditorIcons"))) {
|
||||
return get_parent_control()->get_theme_icon(icon_name, SNAME("EditorIcons"));
|
||||
} else if (get_parent_control()->has_theme_icon(script->get_class(), SNAME("EditorIcons"))) {
|
||||
return get_parent_control()->get_theme_icon(script->get_class(), SNAME("EditorIcons"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue