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.
This commit is contained in:
Seth Hillbrand 2019-02-23 08:07:04 -08:00
parent 82734e7116
commit f47089a804
1 changed files with 3 additions and 0 deletions

View File

@ -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() )