1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix crash when exiting the editor

This commit is contained in:
Haoyu Qiu
2022-01-15 11:22:18 +08:00
parent c1e78f749e
commit 95050ce042

View File

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