Recast: remove commented off-mesh connection check

Off-mesh links should never make it into rebuildBVTree, there is also an assert for it to catch bugs if it happens. Removed commented code.
This commit is contained in:
Kawe Mazidjatari 2024-11-13 14:05:34 +01:00
parent c71d7f52dc
commit 94c296561f

View File

@ -271,10 +271,6 @@ static bool rebuildBVTree(dtMeshTile* tile, const unsigned short* oldPolyIndices
const dtPoly& poly = tile->polys[oldPolyIndex];
rdAssert(poly.getType() != DT_POLYTYPE_OFFMESH_CONNECTION);
//if (poly.getType() == DT_POLYTYPE_OFFMESH_CONNECTION)
// continue;
const dtPolyDetail& detail = tile->detailMeshes[oldPolyIndex];
float bmin[3];