Merge pull request #24219 from guilhermefelipecgs/fix_z_index_auto_tile

Fix AutoTile z-index not persisting correctly
This commit is contained in:
Rémi Verschelde 2018-12-09 11:40:27 +01:00 committed by GitHub
commit f468204d70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;