diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-27 02:06:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-27 02:06:43 +0200 |
commit | 5249ce4f913bb31f7ba973c9d336c9e206eb72d3 (patch) | |
tree | 635429a8d57a8bf4de609060a6aa692b48a02b48 | |
parent | 67b152ab491c0355bf2559bcc8d2af7aa0303b06 (diff) | |
parent | a27632032977bc3ef3d6dca3d454a1420bc69339 (diff) |
Merge pull request #10673 from hpvb/fix-10620
Always size project icons to default icon size
-rw-r--r-- | editor/project_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index 0d57fe05b9..9cb110a2ca 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -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; |