Commit 5249ce4f by Rémi Verschelde Committed by GitHub

Merge pull request #10673 from hpvb/fix-10620

Always size project icons to default icon size
parents 67b152ab a2763203
......@@ -805,7 +805,8 @@ void ProjectManager::_load_recent_projects() {
Error err = img->load(appicon.replace_first("res://", path + "/"));
if (err == OK) {
img->resize(64, 64);
Ref<Texture> default_icon = get_icon("DefaultProjectIcon", "EditorIcons");
img->resize(default_icon->get_width(), default_icon->get_height());
Ref<ImageTexture> it = memnew(ImageTexture);
it->create_from_image(img);
icon = it;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment