From ce14f2a150d546075e3c67d2d2a008b6db39751b Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 29 Oct 2024 12:52:20 +0100 Subject: [PATCH] Recast: only set bits corresponding to polygroup in traverse table The table is fully nulled when allocated, resetting bits is not necessary. --- src/thirdparty/recast/Detour/Source/DetourNavMeshBuilder.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMeshBuilder.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMeshBuilder.cpp index d836e827..29cca6b1 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMeshBuilder.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMeshBuilder.cpp @@ -318,8 +318,6 @@ static void setPolyGroupsTraversalReachability(int* const tableData, const int n if (isReachable) tableData[index] |= value; - else - tableData[index] &= ~value; } static void unionTraverseLinkedPolyGroups(const dtTraverseTableCreateParams* params, const int tableIndex)