Fix edition, LOD downsampling was taking source voxels from wrong position

master
Marc Gilleron 2020-02-05 21:25:11 +00:00
parent bb97d7a614
commit ac370f0e71
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ void VoxelBuffer::downscale_to(VoxelBuffer &dst, Vector3i src_min, Vector3i src_
uint64_t v;
if (src_channel.data) {
// TODO Optimized version?
v = get_voxel(pos, channel_index);
v = get_voxel(src_pos, channel_index);
} else {
v = src_channel.defval;
}