diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-12-09 11:40:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 11:40:27 +0100 |
commit | f468204d70710b872b6c46d1228f03e43049978d (patch) | |
tree | b26692eeadca05c02a4838e45eeaf0d55a177819 | |
parent | c9550b800aed10451273143958dfff461105d45b (diff) | |
parent | 33ca76e15dcb513a3d7d1dd25388c5f9c8e822f1 (diff) |
Merge pull request #24219 from guilhermefelipecgs/fix_z_index_auto_tile
Fix AutoTile z-index not persisting correctly
-rw-r--r-- | scene/resources/tile_set.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/tile_set.cpp b/scene/resources/tile_set.cpp index 88dbc67e01..c2c2c0ff32 100644 --- a/scene/resources/tile_set.cpp +++ b/scene/resources/tile_set.cpp @@ -137,7 +137,7 @@ bool TileSet::_set(const StringName &p_name, const Variant &p_value) { int z_index; while (p.size() > 0) { val = p[0]; - if (val.z > 1) { + if (val.z != 0) { v.x = val.x; v.y = val.y; z_index = (int)val.z; |