From 162f5fb3c7beb10919731aab03587b50934823de Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:07:44 +0200 Subject: [PATCH] Recast: fix convex volume deletion (XZY -> XYZ) Missed coordinate system conversion change. --- src/naveditor/ConvexVolumeTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naveditor/ConvexVolumeTool.cpp b/src/naveditor/ConvexVolumeTool.cpp index efdcdabb..56e2bcd8 100644 --- a/src/naveditor/ConvexVolumeTool.cpp +++ b/src/naveditor/ConvexVolumeTool.cpp @@ -202,7 +202,7 @@ void ShapeVolumeTool::handleClick(const float* /*s*/, const float* p, bool shift for (int i = 0; i < geom->getConvexVolumeCount(); ++i) { if (rdPointInPolygon(p, vols[i].verts, vols[i].nverts) && - p[1] >= vols[i].hmin && p[1] <= vols[i].hmax) + p[2] >= vols[i].hmin && p[2] <= vols[i].hmax) { nearestIndex = i; }