From f47089a804cf08d117fbca991dd7989001ea3ff5 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 23 Feb 2019 08:07:04 -0800 Subject: [PATCH] pcbnew: Enforce router settings When the user selects "Ignore DRC" in the Highlight collisions mode, they should be allowed to start drc violating tracks as well as end them. --- pcbnew/router/pns_router.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/router/pns_router.cpp b/pcbnew/router/pns_router.cpp index 7846650fc2..b7b0466013 100644 --- a/pcbnew/router/pns_router.cpp +++ b/pcbnew/router/pns_router.cpp @@ -157,6 +157,9 @@ bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem, int aDragMode bool ROUTER::isStartingPointRoutable( const VECTOR2I& aWhere, int aLayer ) { + if( Settings().CanViolateDRC() && Settings().Mode() == RM_MarkObstacles ) + return true; + auto candidates = QueryHoverItems( aWhere ); for( ITEM* item : candidates.Items() )