mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
Merge branch 'main' into fix-gc-trigger
This commit is contained in:
commit
5ad6d3ded3
1 changed files with 3 additions and 1 deletions
|
|
@ -309,7 +309,9 @@ static inline voxel* raycast_blocks(
|
|||
} else {
|
||||
iend = {ix, iy, iz};
|
||||
norm = {0, 0, 0};
|
||||
norm[steppedIndex] = -step[steppedIndex];
|
||||
if (steppedIndex != -1) {
|
||||
norm[steppedIndex] = -step[steppedIndex];
|
||||
}
|
||||
return voxel;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue