DRC_TEST_PROVIDER_COPPER_CLEARANCES is for copper only.

Fixes https://gitlab.com/kicad/code/kicad/issues/6248
This commit is contained in:
Jeff Young 2020-11-01 12:22:29 +00:00
parent d2befca5af
commit f600450ee6
1 changed files with 7 additions and 1 deletions

View File

@ -194,7 +194,13 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::Run()
zone->CacheBoundingBox();
m_zoneTrees[ zone ] = std::make_unique<DRC_RTREE>();
m_zoneTrees[ zone ]->insert( zone );
for( int layer : zone->GetLayerSet().Seq() )
{
if( IsCopperLayer( layer ) )
m_zoneTrees[ zone ]->insert( zone, layer );
}
}
reportAux( "Testing %d copper items and %d zones...", count, m_zones.size() );