diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-17 13:57:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 13:57:23 +0100 |
commit | cf0716952db45acf7d7430552f2759c57e0d876e (patch) | |
tree | 798de5bfb9743376877a66550a0384cdc2ce9aff /scene/2d | |
parent | 4d546164e749871c96b77f6c894a47302827b796 (diff) | |
parent | d8402627399e65f8a5ecf6cac7ddac02b5510967 (diff) |
Merge pull request #24422 from guilhermefelipecgs/fix_z_index_atlas
Add z-index to ATLAS_TILE
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/tile_map.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index 641cb161ca..ee76a90019 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -327,7 +327,8 @@ void TileMap::update_dirty_quadrants() { Ref<ShaderMaterial> mat = tile_set->tile_get_material(c.id); int z_index = tile_set->tile_get_z_index(c.id); - if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE) { + if (tile_set->tile_get_tile_mode(c.id) == TileSet::AUTO_TILE || + tile_set->tile_get_tile_mode(c.id) == TileSet::ATLAS_TILE) { z_index += tile_set->autotile_get_z_index(c.id, Vector2(c.autotile_coord_x, c.autotile_coord_y)); } |