Always size project icons to default icon size
I wasn't able to reproduce the issue, but this should fix #10620
This commit is contained in:
parent
53c0010932
commit
a276320329
1 changed files with 2 additions and 1 deletions
|
@ -805,7 +805,8 @@ void ProjectManager::_load_recent_projects() {
|
||||||
Error err = img->load(appicon.replace_first("res://", path + "/"));
|
Error err = img->load(appicon.replace_first("res://", path + "/"));
|
||||||
if (err == OK) {
|
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);
|
Ref<ImageTexture> it = memnew(ImageTexture);
|
||||||
it->create_from_image(img);
|
it->create_from_image(img);
|
||||||
icon = it;
|
icon = it;
|
||||||
|
|
Loading…
Reference in a new issue