router: can't add a clone of a VIA's hole when adding the via to INDEX - this will result in bogus colliding objects

This commit partially reverts deb3cbf8. VIA and SOLID operator='s introduced in it do a good job but the cloning of holes in addHole() causes bogus collisions.
This commit is contained in:
Tomasz Włostowski 2023-06-01 22:44:24 +02:00 committed by Tomasz Wlostowski
parent fe62a3f985
commit 3c3517cc36
1 changed files with 2 additions and 5 deletions

View File

@ -518,11 +518,8 @@ void NODE::addHole( HOLE* aHole )
// do we need holes in the connection graph?
//linkJoint( aHole->Pos(), aHole->Layers(), aHole->Net(), aHole );
HOLE* hole = new HOLE( aHole->Shape()->Clone() );
hole->SetLayers( aHole->Layers() );
hole->SetOwner( this );
m_index->Add( hole );
aHole->SetOwner( this );
m_index->Add( aHole );
}