diff options
author | jackpoz <giacomopoz@gmail.com> | 2019-04-07 21:05:23 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-11-26 22:44:37 +0100 |
commit | ad06ab5436e5753d0d9b23c390bbe50c9d317377 (patch) | |
tree | 86eb110418c20a47997363ea8b6344041308cb37 /dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp | |
parent | 2ed9d01efca4643263585bac11f5624b74c7e1c3 (diff) |
Dep/Recast: Update recastnavigation to https://github.com/recastnavigation/recastnavigation/commit/54bb0943e5174a71eeeca11919920f685760a4f0
(cherry picked from commit e061663508191f7782dd62c7e13b5ea804f58f67)
Diffstat (limited to 'dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp')
-rw-r--r-- | dep/recastnavigation/Recast/Source/RecastMeshDetail.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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++) { |