Fixes FileSystem tree preview icon size on HiDPI

(cherry picked from commit b28fc2df07)
This commit is contained in:
Haoyu Qiu 2020-09-30 15:46:07 +08:00 committed by Rémi Verschelde
parent 1eb4017e28
commit c8a9f700c3
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 1 deletions

View File

@ -172,7 +172,6 @@ void EditorResourcePreview::_generate_preview(Ref<ImageTexture> &r_texture, Ref<
return;
int small_thumbnail_size = EditorNode::get_singleton()->get_theme_base()->get_icon("Object", "EditorIcons")->get_width(); // Kind of a workaround to retrieve the default icon size
small_thumbnail_size *= EDSCALE;
if (preview_generators[i]->can_generate_small_preview()) {
Ref<Texture> generated_small;