Merge pull request #72129 from groud/unclamp_texture_origin
Rename texture_offset and unclamp it
This commit is contained in:
commit
525db733c8
11 changed files with 126 additions and 87 deletions
|
|
@ -897,7 +897,7 @@ void TileMapEditorTilesPlugin::forward_canvas_draw_over_viewport(Control *p_over
|
|||
|
||||
// Compute the offset
|
||||
Rect2i source_rect = atlas_source->get_tile_texture_region(E.value.get_atlas_coords());
|
||||
Vector2i tile_offset = atlas_source->get_tile_effective_texture_offset(E.value.get_atlas_coords(), E.value.alternative_tile);
|
||||
Vector2i tile_offset = tile_data->get_texture_origin();
|
||||
|
||||
// Compute the destination rectangle in the CanvasItem.
|
||||
Rect2 dest_rect;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue