From f48ed79039787f1fb311616a19c2eb858bb4a507 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 29 Jun 2022 13:43:07 -0600 Subject: [PATCH] Rely on DRC rules when items might overlap. Fixes https://gitlab.com/kicad/code/kicad/issues/1790 --- pcbnew/router/pns_router.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 09f274a053..bc6b29704f 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -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();