浏览代码

Fix AutoTile z-index not persisting correctly

Guilherme Felipe 6 年之前
父节点
当前提交
33ca76e15d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/resources/tile_set.cpp

+ 1 - 1
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;