From 855d78e458f4645b02da0c75bbc5b04216500cda Mon Sep 17 00:00:00 2001 From: Rakka Rage Date: Tue, 23 May 2023 01:02:25 -0400 Subject: [PATCH] Make tile atlas merge dialog use filter nearest mipmaps on both sides. To avoid blurry tiles. --- editor/plugins/tiles/atlas_merging_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/plugins/tiles/atlas_merging_dialog.cpp b/editor/plugins/tiles/atlas_merging_dialog.cpp index 274d52da47..f958e83b4d 100644 --- a/editor/plugins/tiles/atlas_merging_dialog.cpp +++ b/editor/plugins/tiles/atlas_merging_dialog.cpp @@ -295,7 +295,7 @@ AtlasMergingDialog::AtlasMergingDialog() { atlas_merging_atlases_list->set_fixed_icon_size(Size2(60, 60) * EDSCALE); atlas_merging_atlases_list->set_h_size_flags(Control::SIZE_EXPAND_FILL); atlas_merging_atlases_list->set_v_size_flags(Control::SIZE_EXPAND_FILL); - atlas_merging_atlases_list->set_texture_filter(CanvasItem::TEXTURE_FILTER_NEAREST); + atlas_merging_atlases_list->set_texture_filter(CanvasItem::TEXTURE_FILTER_NEAREST_WITH_MIPMAPS); atlas_merging_atlases_list->set_custom_minimum_size(Size2(100, 200)); atlas_merging_atlases_list->set_select_mode(ItemList::SELECT_MULTI); atlas_merging_atlases_list->connect("multi_selected", callable_mp(this, &AtlasMergingDialog::_update_texture).unbind(2)); @@ -303,6 +303,7 @@ AtlasMergingDialog::AtlasMergingDialog() { VBoxContainer *atlas_merging_right_panel = memnew(VBoxContainer); atlas_merging_right_panel->set_h_size_flags(Control::SIZE_EXPAND_FILL); + atlas_merging_right_panel->set_texture_filter(CanvasItem::TEXTURE_FILTER_NEAREST_WITH_MIPMAPS); atlas_merging_h_split_container->add_child(atlas_merging_right_panel); // Settings.