Fix for voxelizing heightfields.