mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix convex volume deletion (XZY -> XYZ)
Missed coordinate system conversion change.
This commit is contained in:
parent
290f78f8c8
commit
162f5fb3c7
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user