Revert NPTH commit, and add some comments.

This commit is contained in:
Jeff Young 2021-04-26 16:26:18 +01:00
parent d13fb85d7f
commit b65b1f8e9c
1 changed files with 2 additions and 1 deletions

View File

@ -513,7 +513,8 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa
testHoles = false; testHoles = false;
} }
if( pad->GetAttribute() == PAD_ATTRIB_NPTH ) // A NPTH has no cylinder, but it may still have pads on some layers
if( pad->GetAttribute() == PAD_ATTRIB_NPTH && !pad->FlashLayer( layer ) )
testClearance = false; testClearance = false;
if( !IsCopperLayer( layer ) ) if( !IsCopperLayer( layer ) )