mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-11-11 20:35:08 +01:00
Fixed VoxelBuffer::fill_area()
This commit is contained in:
parent
fc6172635a
commit
e6213c50c7
@ -110,7 +110,7 @@ void VoxelBuffer::fill_area(int defval, Vector3i min, Vector3i max, unsigned int
|
||||
Vector3i pos;
|
||||
for (pos.z = min.z; pos.z < max.z; ++pos.z) {
|
||||
for (pos.x = min.x; pos.x < max.x; ++pos.x) {
|
||||
unsigned int dst_ri = index(pos.x, pos.y, pos.z);
|
||||
unsigned int dst_ri = index(pos.x, pos.y + min.y, pos.z);
|
||||
memset(&channel.data[dst_ri], defval, area_size.y * sizeof(uint8_t));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user