fix(Core/Collision): typo in VMap BIH generation. (#7066)

* Core/Collision: Fix typo in VMap BIH generation.

Fixed #5768.

* Bump vmap and mmap versions.

* chore: update data version in the bash installer
This commit is contained in:
UltraNix
2021-08-08 12:21:29 +02:00
committed by GitHub
parent f01cb2d71b
commit 261d5c62cd
6 changed files with 9 additions and 9 deletions

View File

@@ -148,6 +148,7 @@ 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
@@ -155,7 +156,6 @@ void BIH::subdivide(int left, int right, std::vector<uint32>& tempTree, buildDat
createNode(tempTree, nodeIndex, left, right);
return;
}
right = rightOrig;
if (clipR >= split)
{
// keep looping on right half