diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-24 08:49:03 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-05-24 08:49:03 +0200 |
commit | 692a76d9a51ee57e82ac4c84b79bc9016ddec73b (patch) | |
tree | 3cf812e98105312b176757481483db69e3addc8c | |
parent | ba557aaf5545ff6e31fa6c724582c402caeb718e (diff) | |
parent | 855d78e458f4645b02da0c75bbc5b04216500cda (diff) | |
download | redot-engine-692a76d9a51ee57e82ac4c84b79bc9016ddec73b.tar.gz |
Merge pull request #77385 from rakkarage/tileset-atlas-merge-filter
Make tile atlas merge dialog use filter nearest on right side, like left. To avoid blurry tiles.
-rw-r--r-- | editor/plugins/tiles/atlas_merging_dialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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. |