Merge pull request #56808 from timothyqiu/crash-fix

Fix crash when exiting the editor
This commit is contained in:
Rémi Verschelde 2022-01-15 09:34:43 +01:00 committed by GitHub
commit 6eff2230a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2661,7 +2661,7 @@ Ref<Texture2D> VisualScriptEditor::get_theme_icon() {
}
if (Control::has_theme_icon(icon_name, "EditorIcons")) {
return get_parent_control()->get_theme_icon(icon_name, "EditorIcons");
return Control::get_theme_icon(icon_name, SNAME("EditorIcons"));
}
return Control::get_theme_icon(SNAME("VisualScript"), SNAME("EditorIcons"));