mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
That should have been a Vector3i
This commit is contained in:
parent
b117a2a336
commit
f9034eba08
@ -119,7 +119,7 @@ void VoxelMap::get_buffer_copy(Vector3i min_pos, VoxelBuffer &dst_buffer, unsign
|
|||||||
|
|
||||||
Vector3i min_block_pos = voxel_to_block(min_pos);
|
Vector3i min_block_pos = voxel_to_block(min_pos);
|
||||||
Vector3i max_block_pos = voxel_to_block(max_pos - Vector3i(1, 1, 1)) + Vector3i(1, 1, 1);
|
Vector3i max_block_pos = voxel_to_block(max_pos - Vector3i(1, 1, 1)) + Vector3i(1, 1, 1);
|
||||||
ERR_FAIL_COND((max_block_pos - min_block_pos) != Vector3(3, 3, 3));
|
ERR_FAIL_COND((max_block_pos - min_block_pos) != Vector3i(3, 3, 3));
|
||||||
|
|
||||||
const Vector3i block_size_v(_block_size, _block_size, _block_size);
|
const Vector3i block_size_v(_block_size, _block_size, _block_size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user