You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
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.
This commit is contained in:
@@ -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 gui_base->get_icon(p_fallback, "EditorIcons");
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user