Recast: fix convex volume deletion (XZY -> XYZ)

Missed coordinate system conversion change.
This commit is contained in:
Kawe Mazidjatari 2024-09-20 15:07:44 +02:00
parent 290f78f8c8
commit 162f5fb3c7

View File

@ -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;
}