Skip to content

Commit

Permalink
Fix errors when moving away from an edited chunk with Clipbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Apr 6, 2024
1 parent 7f9493d commit 3988a37
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -905,8 +905,8 @@ void unview_mesh_box(const Box3i out_of_range_box, VoxelLodTerrainUpdateData::Lo
// Voxels of the mesh could have been modified while the mesh was inactive (notably LODs)
if (mesh_block.state == VoxelLodTerrainUpdateData::MESH_NEED_UPDATE) {
mesh_block.state = VoxelLodTerrainUpdateData::MESH_UPDATE_NOT_SENT;
mesh_block.update_list_index = lod.mesh_blocks_pending_update.size();
lod.mesh_blocks_pending_update.push_back(VoxelLodTerrainUpdateData::MeshToUpdate{
mesh_block.update_list_index = parent_lod.mesh_blocks_pending_update.size();
parent_lod.mesh_blocks_pending_update.push_back(VoxelLodTerrainUpdateData::MeshToUpdate{
bpos, TaskCancellationToken(), mesh_block.mesh_viewers.get() > 0 });
}
}
Expand Down

0 comments on commit 3988a37

Please sign in to comment.