Don't preemptively skip previously seen objects

We need to return them in order to detect the self-intersection
This commit is contained in:
Seth Hillbrand 2025-08-25 05:42:23 -07:00
parent 9cabceb773
commit 87ee9c4b49

View File

@ -200,7 +200,7 @@ static PCB_SHAPE* findNext( PCB_SHAPE* aShape, const VECTOR2I& aPoint, const KDT
if( candidate == aShape )
continue;
if( match.second < closest_dist_sq && !candidate->HasFlag( SKIP_STRUCT ) )
if( match.second < closest_dist_sq )
{
closest_dist_sq = match.second;
closest_graphic = candidate;