3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-26 13:55:31 +02:00

Merge pull request from Atlante45/fix_voxel_bug

fix voxel bug
This commit is contained in:
Andrzej Kapolka 2014-08-06 11:46:38 -07:00
commit c384abedcc

View file

@ -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 };