summaryrefslogtreecommitdiffstats
path: root/editor/editor_resource_picker.cpp
diff options
context:
space:
mode:
authorMrBlockers <1747505+MrBlockers@users.noreply.github.com>2022-10-14 21:36:10 -0400
committerMrBlockers <1747505+MrBlockers@users.noreply.github.com>2022-10-20 18:36:09 -0400
commit4bddec700358e2a019c49b61ea8ab02a064f171f (patch)
treebea8e0118ce11d07f3c0100ba182433d7eef3177 /editor/editor_resource_picker.cpp
parent72b845b28773dd40adf6f55b226fb732910cbf14 (diff)
downloadredot-engine-4bddec700358e2a019c49b61ea8ab02a064f171f.tar.gz
Make texture preview and picker use mipmap filter
Diffstat (limited to 'editor/editor_resource_picker.cpp')
-rw-r--r--editor/editor_resource_picker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_resource_picker.cpp b/editor/editor_resource_picker.cpp
index 01816b7205..5545dc4ee2 100644
--- a/editor/editor_resource_picker.cpp
+++ b/editor/editor_resource_picker.cpp
@@ -958,6 +958,7 @@ EditorResourcePicker::EditorResourcePicker(bool p_hide_assign_button_controls) {
preview_rect->set_offset(SIDE_TOP, 1);
preview_rect->set_offset(SIDE_BOTTOM, -1);
preview_rect->set_offset(SIDE_RIGHT, -1);
+ preview_rect->set_texture_filter(TEXTURE_FILTER_NEAREST_WITH_MIPMAPS);
assign_button->add_child(preview_rect);
}