mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Don't preemptively skip previously seen objects
We need to return them in order to detect the self-intersection
This commit is contained in:
parent
9cabceb773
commit
87ee9c4b49
@ -200,7 +200,7 @@ static PCB_SHAPE* findNext( PCB_SHAPE* aShape, const VECTOR2I& aPoint, const KDT
|
|||||||
if( candidate == aShape )
|
if( candidate == aShape )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( match.second < closest_dist_sq && !candidate->HasFlag( SKIP_STRUCT ) )
|
if( match.second < closest_dist_sq )
|
||||||
{
|
{
|
||||||
closest_dist_sq = match.second;
|
closest_dist_sq = match.second;
|
||||||
closest_graphic = candidate;
|
closest_graphic = candidate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user