Fix for Issue 100:Convex poly tool always removes last shape
This commit is contained in:
parent
d83961ecd4
commit
281fdb9d64
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user