Make texture filtering in TileAtlasView consistent

Co-authored-by: Gilles Roudière <gilles.roudiere@gmail.com>
This commit is contained in:
alula 2024-06-17 14:54:13 +01:00 committed by Alula
parent 5833f59786
commit e591bb0288
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}