From 182dbce670dd631125b2f0f7d879c37259ae4305 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 8 Oct 2022 16:57:21 +0200 Subject: [PATCH] Fix compile. --- editor/editor_help.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 5f626789f..a43d0a874 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -239,12 +239,12 @@ void EditorHelp::_add_type(const String &p_type, const String &p_enum) { void EditorHelp::_add_type_icon(const String &p_type, int p_size) { Ref icon; - if (has_icon(p_type, "EditorIcons")) { - icon = get_icon(p_type, "EditorIcons"); + if (has_theme_icon(p_type, "EditorIcons")) { + icon = get_theme_icon(p_type, "EditorIcons"); } else if (ClassDB::class_exists(p_type) && ClassDB::is_parent_class(p_type, "Object")) { - icon = get_icon("Object", "EditorIcons"); + icon = get_theme_icon("Object", "EditorIcons"); } else { - icon = get_icon("ArrowRight", "EditorIcons"); + icon = get_theme_icon("ArrowRight", "EditorIcons"); } Vector2i size = Vector2i(icon->get_width(), icon->get_height());