chunkmesher: also cleanup colors at the start
parent
bc2225e0f3
commit
ba35689c6c
|
@ -36,6 +36,7 @@ void mesh(Chunk::Chunk* chunk)
|
||||||
*/
|
*/
|
||||||
chunk->vertices.clear();
|
chunk->vertices.clear();
|
||||||
chunk->indices.clear();
|
chunk->indices.clear();
|
||||||
|
chunk->colors.clear();
|
||||||
chunk->vIndex = 0;
|
chunk->vIndex = 0;
|
||||||
|
|
||||||
if(chunk->getState(Chunk::CHUNK_STATE_EMPTY)) return;
|
if(chunk->getState(Chunk::CHUNK_STATE_EMPTY)) return;
|
||||||
|
|
Loading…
Reference in New Issue