summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRakka Rage <rakkarage@gmail.com>2023-05-23 01:02:25 -0400
committerRakka Rage <rakkarage@gmail.com>2023-05-23 14:46:02 -0400
commit855d78e458f4645b02da0c75bbc5b04216500cda (patch)
tree5c3f2629f9a83fdc8229a578b2e876a047164a3c /editor
parent9dc286967fec1f902daedd2376bb0dbbd422a4af (diff)
downloadredot-engine-855d78e458f4645b02da0c75bbc5b04216500cda.tar.gz
Make tile atlas merge dialog use filter nearest mipmaps on both sides. To avoid blurry tiles.
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/tiles/atlas_merging_dialog.cpp3
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.