Fix broken vertex sharing when texture mode is enabled

This commit is contained in:
Marc Gilleron 2021-05-03 00:10:24 +01:00
parent ef448263c0
commit f5446e3d69

View File

@ -413,6 +413,7 @@ void build_regular_mesh(
CellTextureDatas<8> cell_textures;
if (texturing_mode == TEXTURES_BLEND_4_OVER_16) {
get_cell_texture_data(cell_textures, texture_indices_data, corner_data_indices, weights_data);
current_reuse_cell.packed_texture_indices = cell_textures.packed_indices;
}
FixedArray<Vector3i, 8> corner_positions;