Fix typo in VMap BIH generation (#18297)

Fix typo in VMap BIH generation
By zorix
This commit is contained in:
Aokromes
2016-11-28 01:19:16 +01:00
committed by Aokromes
parent 6d3d63d47c
commit f4a3d112a2

View File

@@ -152,13 +152,13 @@ void BIH::subdivide(int left, int right, std::vector<uint32> &tempTree, buildDat
else if (left > right)
{
// all right
right = rightOrig;
if (prevAxis == axis && G3D::fuzzyEq(prevSplit, split)) {
// we are stuck here - create a leaf
stats.updateLeaf(depth, right - left + 1);
createNode(tempTree, nodeIndex, left, right);
return;
}
right = rightOrig;
if (clipR >= split) {
// keep looping on right half
gridBox.lo[axis] = split;