diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-08 16:49:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-08 16:49:09 +0200 |
commit | 697805af54f3d25195617a513e18ec3a4f9fe0c6 (patch) | |
tree | e25437dc20403880e8998aa0d519b7f3fe315764 /scene | |
parent | 787fd7e4d0c55c4ff4947a98ee24d593bd62b048 (diff) | |
parent | f514b82fd375388c35d280335b51d6544979215b (diff) |
Merge pull request #62837 from xentripetal/master
Account for relative z-indexes when y-sorting
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/tile_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 9c4b0feea2..cf8b6b8f94 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -1158,6 +1158,7 @@ void TileMap::_rendering_update_dirty_quadrants(SelfList<TileMapQuadrant>::List rs->canvas_item_set_transform(canvas_item, xform); rs->canvas_item_set_light_mask(canvas_item, get_light_mask()); + rs->canvas_item_set_z_as_relative_to_parent(canvas_item, true); rs->canvas_item_set_z_index(canvas_item, z_index); rs->canvas_item_set_default_texture_filter(canvas_item, RS::CanvasItemTextureFilter(get_texture_filter())); |