Allow close placement of stitching vias
When placing a stitching via for a bypass capacitor, it is common to place it close to the relevant pad. If the via does not have the correct net, this will violate DRC and be prevented. Checking for zone-based net assignments allows the workflow to proceed
This commit is contained in:
parent
f14e5b61b3
commit
e03257b55f
|
@ -2553,6 +2553,8 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
|
|||
via->SetNetCode( track->GetNetCode() );
|
||||
else if( pad )
|
||||
via->SetNetCode( pad->GetNetCode() );
|
||||
else
|
||||
via->SetNetCode( findStitchedZoneNet( via ) );
|
||||
|
||||
if( !m_allowDRCViolations && checkDRCViolation( via ) )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue