From 4065b8dd288f72684d7671669faf1f36f94742d9 Mon Sep 17 00:00:00 2001 From: Evandro Bitencourt Date: Sat, 22 Sep 2018 18:53:34 -0300 Subject: [PATCH] Fix issue #22320. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a resource item doesn´t define a icon it should not use the theme default icon, the default theme icon is an error msg. --- editor/editor_node.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index 03746fb8b70..aaa2d7d0d1e 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -3202,7 +3202,7 @@ Ref EditorNode::get_class_icon(const String &p_class, const String &p_f } } - if (p_fallback.length()) + if (p_fallback.length() && gui_base->has_icon(p_fallback, "EditorIcons")) return gui_base->get_icon(p_fallback, "EditorIcons"); return NULL;