summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvandro Bitencourt <evandro.bitencourt@gmail.com>2018-09-22 18:53:34 -0300
committerEvandro Bitencourt <evandro.bitencourt@gmail.com>2018-09-22 18:53:34 -0300
commit4065b8dd288f72684d7671669faf1f36f94742d9 (patch)
treeb4b1bc433810c740d307d15a22ff442320f8b723
parent2613e59f59a67d78214e58cdb8856f50bfc08b19 (diff)
Fix issue #22320.
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.
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 03746fb8b7..aaa2d7d0d1 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -3202,7 +3202,7 @@ Ref<Texture> 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;