summaryrefslogtreecommitdiff
path: root/scene/2d/tile_map.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-27 15:40:52 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-27 15:40:52 +0100
commit525db733c8e669b378e7eacb06214debbf6af616 (patch)
treeaf996e0b25762cb716eb48b5b0a4cac309fa1a25 /scene/2d/tile_map.cpp
parentf0e3c3f4c398f25ad5d9f9133c0ff6162e6716ad (diff)
parentd7f3bd50bd20fddb7c387a30339c6a112911ec1c (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.cpp2
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;