diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 15:40:52 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-27 15:40:52 +0100 |
commit | 525db733c8e669b378e7eacb06214debbf6af616 (patch) | |
tree | af996e0b25762cb716eb48b5b0a4cac309fa1a25 /scene/2d/tile_map.cpp | |
parent | f0e3c3f4c398f25ad5d9f9133c0ff6162e6716ad (diff) | |
parent | d7f3bd50bd20fddb7c387a30339c6a112911ec1c (diff) |
Merge pull request #72129 from groud/unclamp_texture_origin
Rename texture_offset and unclamp it
Diffstat (limited to 'scene/2d/tile_map.cpp')
-rw-r--r-- | scene/2d/tile_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 8c5aab4c80..a1304ab991 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -1379,7 +1379,7 @@ void TileMap::draw_tile(RID p_canvas_item, const Vector2i &p_position, const Ref Color modulate = tile_data->get_modulate() * p_modulation; // Compute the offset. - Vector2i tile_offset = atlas_source->get_tile_effective_texture_offset(p_atlas_coords, p_alternative_tile); + Vector2i tile_offset = tile_data->get_texture_origin(); // Get destination rect. Rect2 dest_rect; |