فهرست منبع

Merge pull request #24219 from guilhermefelipecgs/fix_z_index_auto_tile

Fix AutoTile z-index not persisting correctly
Rémi Verschelde 6 سال پیش
والد
کامیت
f468204d70
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;