From 1d2dd0a2d5daf6c4b5a9a66d3b568c6799631c49 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:43:53 +0200 Subject: [PATCH] Recast: fix indices for debug box (XZY -> XYZ) the box's shape rendered correctly, but the faces were in the wrong order. The top face was on the side, so the voxel debug view didn't render correctly. --- src/thirdparty/recast/DebugUtils/Source/DebugDraw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thirdparty/recast/DebugUtils/Source/DebugDraw.cpp b/src/thirdparty/recast/DebugUtils/Source/DebugDraw.cpp index 66a3849c..8c30faa9 100644 --- a/src/thirdparty/recast/DebugUtils/Source/DebugDraw.cpp +++ b/src/thirdparty/recast/DebugUtils/Source/DebugDraw.cpp @@ -316,12 +316,12 @@ void duAppendBox(struct duDebugDraw* dd, float minx, float miny, float minz, }; static const unsigned char inds[6*4] = { + 2, 6, 7, 3, + 0, 4, 5, 1, 7, 6, 5, 4, 0, 1, 2, 3, 1, 5, 6, 2, 3, 7, 4, 0, - 2, 6, 7, 3, - 0, 4, 5, 1, }; const unsigned char* in = inds;