From 33ca76e15dcb513a3d7d1dd25388c5f9c8e822f1 Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Fri, 7 Dec 2018 22:00:54 -0200 Subject: Fix AutoTile z-index not persisting correctly --- scene/resources/tile_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3