diff options
author | alula <6276139+alula@users.noreply.github.com> | 2024-06-17 14:54:13 +0100 |
---|---|---|
committer | Alula <6276139+alula@users.noreply.github.com> | 2024-06-17 16:56:32 +0200 |
commit | e591bb0288560711d098d862d60271102101a68f (patch) | |
tree | b373b454557ce239866f3a25f8d130994c47e52f /editor/plugins/tiles | |
parent | 5833f597865c773fae3ee09fc4e31d4a243f812d (diff) | |
download | redot-engine-e591bb0288560711d098d862d60271102101a68f.tar.gz |
Make texture filtering in TileAtlasView consistent
Co-authored-by: Gilles Roudière <gilles.roudiere@gmail.com>
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r-- | editor/plugins/tiles/tile_atlas_view.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/tiles/tile_atlas_view.cpp b/editor/plugins/tiles/tile_atlas_view.cpp index 52b58b74a3..3942baed8a 100644 --- a/editor/plugins/tiles/tile_atlas_view.cpp +++ b/editor/plugins/tiles/tile_atlas_view.cpp @@ -311,6 +311,7 @@ RID TileAtlasView::_get_canvas_item_to_draw(const TileData *p_for_data, const Ca RID ci_rid = RS::get_singleton()->canvas_item_create(); RS::get_singleton()->canvas_item_set_parent(ci_rid, p_base_item->get_canvas_item()); RS::get_singleton()->canvas_item_set_material(ci_rid, mat->get_rid()); + RS::get_singleton()->canvas_item_set_default_texture_filter(ci_rid, RS::CanvasItemTextureFilter(p_base_item->get_texture_filter_in_tree())); p_material_map[mat] = ci_rid; return ci_rid; } |