From 9769e1020ba62c7475bd5742016ce1286657d70e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Tue, 3 Mar 2020 12:41:30 -0800 Subject: [PATCH] PNS: Don't link unroutable items The joint map only works for items that are routable, so don't bother adding unroutable items as this only takes additional time to process Fixes #3976 | https://gitlab.com/kicad/code/kicad/issues/3976 --- pcbnew/router/pns_node.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pcbnew/router/pns_node.cpp b/pcbnew/router/pns_node.cpp index 5a772bf64a..a074d5b74f 100644 --- a/pcbnew/router/pns_node.cpp +++ b/pcbnew/router/pns_node.cpp @@ -538,7 +538,9 @@ const ITEM_SET NODE::HitTest( const VECTOR2I& aPoint ) const void NODE::addSolid( SOLID* aSolid ) { - linkJoint( aSolid->Pos(), aSolid->Layers(), aSolid->Net(), aSolid ); + if( aSolid->IsRoutable() ) + linkJoint( aSolid->Pos(), aSolid->Layers(), aSolid->Net(), aSolid ); + m_index->Add( aSolid ); }