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:
parent
82734e7116
commit
f47089a804
|
@ -157,6 +157,9 @@ bool ROUTER::StartDragging( const VECTOR2I& aP, ITEM* aStartItem, int aDragMode
|
||||||
|
|
||||||
bool ROUTER::isStartingPointRoutable( const VECTOR2I& aWhere, int aLayer )
|
bool ROUTER::isStartingPointRoutable( const VECTOR2I& aWhere, int aLayer )
|
||||||
{
|
{
|
||||||
|
if( Settings().CanViolateDRC() && Settings().Mode() == RM_MarkObstacles )
|
||||||
|
return true;
|
||||||
|
|
||||||
auto candidates = QueryHoverItems( aWhere );
|
auto candidates = QueryHoverItems( aWhere );
|
||||||
|
|
||||||
for( ITEM* item : candidates.Items() )
|
for( ITEM* item : candidates.Items() )
|
||||||
|
|
Loading…
Reference in New Issue