From e061663508191f7782dd62c7e13b5ea804f58f67 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sun, 7 Apr 2019 21:05:23 +0200 Subject: Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/54bb0943e5174a71eeeca11919920f685760a4f0 --- dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp') diff --git a/dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp b/dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp index 68ab726aabb..9a423cab8a6 100644 --- a/dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp +++ b/dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp @@ -1141,7 +1141,8 @@ static void getHeightData(rcContext* ctx, const rcCompactHeightfield& chf, static unsigned char getEdgeFlags(const float* va, const float* vb, const float* vpoly, const int npoly) { - // Return true if edge (va,vb) is part of the polygon. + // The flag returned by this function matches dtDetailTriEdgeFlags in Detour. + // Figure out if edge (va,vb) is part of the polygon boundary. static const float thrSqr = rcSqr(0.001f); for (int i = 0, j = npoly-1; i < npoly; j=i++) { -- cgit v1.2.3