Browse Source

Merge pull request #56808 from timothyqiu/crash-fix

Fix crash when exiting the editor
Rémi Verschelde 3 years ago
parent
commit
6eff2230a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/visual_script/editor/visual_script_editor.cpp

+ 1 - 1
modules/visual_script/editor/visual_script_editor.cpp

@@ -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"));