Merge pull request #22354 from evandropoa/resources_list_icon_issue

Fix icon issue for the resource list popup #22320.
This commit is contained in:
Rémi Verschelde 2018-10-02 09:30:21 +02:00 committed by GitHub
commit 7aca38e218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3201,7 +3201,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;