Make sure pad local clearances get in to m_worstClearance.
This commit is contained in:
parent
0bce280424
commit
da4b269783
|
@ -128,15 +128,24 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::Run()
|
|||
for( ZONE* zone : m_board->Zones() )
|
||||
{
|
||||
if( !zone->GetIsRuleArea() )
|
||||
{
|
||||
m_zones.push_back( zone );
|
||||
m_largestClearance = std::max( m_largestClearance, zone->GetLocalClearance() );
|
||||
}
|
||||
}
|
||||
|
||||
for( FOOTPRINT* footprint : m_board->Footprints() )
|
||||
{
|
||||
for( PAD* pad : footprint->Pads() )
|
||||
m_largestClearance = std::max( m_largestClearance, pad->GetLocalClearance() );
|
||||
|
||||
for( ZONE* zone : footprint->Zones() )
|
||||
{
|
||||
if( !zone->GetIsRuleArea() )
|
||||
{
|
||||
m_zones.push_back( zone );
|
||||
m_largestClearance = std::max( m_largestClearance, zone->GetLocalClearance() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -130,6 +130,8 @@ bool ZONE_FILLER::Fill( std::vector<ZONE*>& aZones, bool aCheck, wxWindow* aPare
|
|||
pad->BuildEffectiveShapes( UNDEFINED_LAYER );
|
||||
pad->BuildEffectivePolygon();
|
||||
}
|
||||
|
||||
m_worstClearance = std::max( m_worstClearance, pad->GetLocalClearance() );
|
||||
}
|
||||
|
||||
for( ZONE* zone : footprint->Zones() )
|
||||
|
|
Loading…
Reference in New Issue