Rely on DRC rules when items might overlap.

Fixes https://gitlab.com/kicad/code/kicad/issues/1790

(cherry picked from commit f48ed79039)
This commit is contained in:
Jeff Young 2022-06-29 13:43:07 -06:00
parent cd5b4ec8f2
commit 06baaa33fa
1 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,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();