Fix typo in VMap BIH generation (#18297)

Fix typo in VMap BIH generation
By zorix
This commit is contained in:
Aokromes authored and Aokromes committed 2016-12-06 11:03:08 +01:00
1 parent 6d3d63d47c
commit f4a3d112a2
1 file changed
+1 -1
@@ -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;