Fix for Issue 100:Convex poly tool always removes last shape

This commit is contained in:
Mikko Mononen 2010-07-27 05:56:49 +00:00
parent d83961ecd4
commit 281fdb9d64

View File

@ -175,7 +175,7 @@ void ConvexVolumeTool::handleClick(const float* p, bool shift)
for (int i = 0; i < geom->getConvexVolumeCount(); ++i)
{
if (pointInPoly(vols[i].nverts, vols[i].verts, p) &&
p[1] >= vols[i].hmin, p[1] <= vols[i].hmax)
p[1] >= vols[i].hmin && p[1] <= vols[i].hmax)
{
nearestIndex = i;
}