mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
move getVoxels from ChunksStorage to Chunks
This commit is contained in:
parent
79693580e0
commit
c5ca9128e9
8 changed files with 107 additions and 107 deletions
|
|
@ -26,7 +26,7 @@ std::unique_ptr<VoxelFragment> VoxelFragment::create(
|
|||
if (crop) {
|
||||
VoxelsVolume volume(size.x, size.y, size.z);
|
||||
volume.setPosition(start.x, start.y, start.z);
|
||||
level->chunksStorage->getVoxels(&volume);
|
||||
level->chunks->getVoxels(&volume);
|
||||
|
||||
auto end = start + size;
|
||||
|
||||
|
|
@ -51,7 +51,7 @@ std::unique_ptr<VoxelFragment> VoxelFragment::create(
|
|||
|
||||
VoxelsVolume volume(size.x, size.y, size.z);
|
||||
volume.setPosition(start.x, start.y, start.z);
|
||||
level->chunksStorage->getVoxels(&volume);
|
||||
level->chunks->getVoxels(&volume);
|
||||
|
||||
auto volVoxels = volume.getVoxels();
|
||||
std::vector<voxel> voxels(size.x * size.y * size.z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue