From 597ef81e53b8385f94b15eef44655a006ef06a76 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 22 Feb 2023 01:57:58 +0100 Subject: [PATCH] Allow micro/buried via holes to be considered hole_to_hole clearance should account for all holes in the board. Previously, we had excluded non through holes from this test but that omits via holes that can still foul a future drill hit. Designers wanting the old behavior can explicitly set the hole_to_hole clearance to 0mm for specific ViaType pairs --- pcbnew/drc/drc_engine.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pcbnew/drc/drc_engine.cpp b/pcbnew/drc/drc_engine.cpp index add81fb11a..d7dc47e437 100644 --- a/pcbnew/drc/drc_engine.cpp +++ b/pcbnew/drc/drc_engine.cpp @@ -651,11 +651,7 @@ bool hasDrilledHole( const BOARD_ITEM* aItem ) switch( aItem->Type() ) { case PCB_VIA_T: - { - const PCB_VIA* via = static_cast( aItem ); - - return via->GetViaType() == VIATYPE::THROUGH; - } + return true; case PCB_PAD_T: {