Skip to content

Commit

Permalink
Merge pull request godotengine#92926 from alula/patch-2
Browse files Browse the repository at this point in the history
Make texture filtering in TileAtlasView consistent
  • Loading branch information
akien-mga committed Jun 17, 2024
2 parents eb20a68 + e591bb0 commit e2fc6d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/tiles/tile_atlas_view.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e2fc6d3

Please sign in to comment.