mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
update blocks.fill and fragment.save commands
This commit is contained in:
parent
44cfc8ab75
commit
a78315b39c
2 changed files with 21 additions and 15 deletions
|
|
@ -21,7 +21,7 @@ std::unique_ptr<VoxelFragment> VoxelFragment::create(
|
|||
bool entities
|
||||
) {
|
||||
auto start = glm::min(a, b);
|
||||
auto size = glm::abs(a - b);
|
||||
auto size = glm::abs(a - b) + 1;
|
||||
|
||||
if (crop) {
|
||||
VoxelsVolume volume(size.x, size.y, size.z);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue