Rely on DRC rules when items might overlap.

Fixes https://gitlab.com/kicad/code/kicad/issues/1790
This commit is contained in:
Jeff Young 2022-06-29 13:43:07 -06:00
parent 802745398a
commit f48ed79039
1 changed files with 6 additions and 0 deletions

View File

@ -227,6 +227,12 @@ bool ROUTER::isStartingPointRoutable( const VECTOR2I& aWhere, ITEM* aStartItem,
for( ITEM* item : candidates.Items() )
{
if( item->Parent() && item->Parent()->GetLayer() == Edge_Cuts )
{
// Edge cuts are put on all layers, but they're not *really* on all layers
continue;
}
if( !item->IsRoutable() && item->Layers().Overlaps( aLayer ) )
{
BOARD_ITEM* parent = item->Parent();