From b65b1f8e9c164054bdfebc95e23e870fce00b48f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 26 Apr 2021 16:26:18 +0100 Subject: [PATCH] Revert NPTH commit, and add some comments. --- pcbnew/drc/drc_test_provider_copper_clearance.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/drc/drc_test_provider_copper_clearance.cpp b/pcbnew/drc/drc_test_provider_copper_clearance.cpp index d3afa35186..7e08e710cc 100644 --- a/pcbnew/drc/drc_test_provider_copper_clearance.cpp +++ b/pcbnew/drc/drc_test_provider_copper_clearance.cpp @@ -513,7 +513,8 @@ bool DRC_TEST_PROVIDER_COPPER_CLEARANCE::testPadAgainstItem( PAD* pad, SHAPE* pa 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; if( !IsCopperLayer( layer ) )