mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 19:55:07 +02:00
fix voxel bug
This commit is contained in:
parent
6976d0f51e
commit
a8999d7db7
1 changed files with 2 additions and 2 deletions
|
@ -752,7 +752,7 @@ function calculateVoxelFromIntersection(intersection, operation) {
|
|||
highlightAt.z = z + zFightingSizeAdjust;
|
||||
voxelSize -= 2 * zFightingSizeAdjust;
|
||||
if (wantAddAdjust) {
|
||||
resultVoxel.y += voxelSize;
|
||||
resultVoxel.y += resultVoxel.s;
|
||||
}
|
||||
|
||||
resultVoxel.bottomRight = {x: highlightAt.x, y: highlightAt.y, z: highlightAt.z };
|
||||
|
@ -782,7 +782,7 @@ function calculateVoxelFromIntersection(intersection, operation) {
|
|||
highlightAt.z = z + voxelSize + zFightingSizeAdjust;
|
||||
voxelSize -= 2 * zFightingSizeAdjust;
|
||||
if (wantAddAdjust) {
|
||||
resultVoxel.z += voxelSize;
|
||||
resultVoxel.z += resultVoxel.s;
|
||||
}
|
||||
|
||||
resultVoxel.bottomLeft = {x: highlightAt.x, y: highlightAt.y, z: highlightAt.z };
|
||||
|
|
Loading…
Reference in a new issue