Don't run the footprint checker's shorting pads routine at board level.
Fixes https://gitlab.com/kicad/code/kicad/issues/13555
This commit is contained in:
parent
c4ccf46cc7
commit
e490728226
|
@ -108,15 +108,8 @@ bool DRC_TEST_PROVIDER_FOOTPRINT_CHECKS::Run()
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !m_drcEngine->IsErrorLimitExceeded( DRCE_SHORTING_ITEMS ) )
|
// Don't call footprint->CheckShortingPads(). At the board level we know about nets,
|
||||||
{
|
// and the pads may have the same net even though they're distinct pads.
|
||||||
footprint->CheckShortingPads(
|
|
||||||
[&]( const PAD* aPadA, const PAD* aPadB, const VECTOR2I& aPosition )
|
|
||||||
{
|
|
||||||
errorHandler( aPadA, aPadB, nullptr, DRCE_SHORTING_ITEMS, wxEmptyString,
|
|
||||||
aPosition, aPadA->GetPrincipalLayer() );
|
|
||||||
} );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( footprint->IsNetTie() )
|
if( footprint->IsNetTie() )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue