fix layers generation

This commit is contained in:
MihailRis
2024-08-23 23:29:40 +03:00
parent f413a6f0ac
commit 54067d0ab2
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ static inline void generate_pole(
} else {
layerHeight += layerExtension;
}
layerHeight = std::min(static_cast<uint>(layerHeight), y);
layerHeight = std::min(static_cast<uint>(layerHeight), y+1);
for (uint i = 0; i < layerHeight; i++, y--) {
voxels[vox_index(x, y, z)].id = layer.rt.id;