Fix AutoTile z-index not persisting correctly

This commit is contained in:
Guilherme Felipe 2018-12-07 22:00:54 -02:00
parent 41d1dba35f
commit 33ca76e15d

View File

@ -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;