When routing, check for board-level clearances

If the board-level clearance exceeds the max pad/track clearance, we end
up missing collisions in the router.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15162

(cherry picked from commit 000998ccae)
This commit is contained in:
Seth Hillbrand 2023-07-24 15:18:18 -07:00
parent 022105cdba
commit 2652068933
1 changed files with 4 additions and 1 deletions

View File

@ -1028,9 +1028,12 @@ bool BOARD_DESIGN_SETTINGS::Ignore( int aDRCErrorCode )
int BOARD_DESIGN_SETTINGS::GetBiggestClearanceValue() const
{
int biggest = 0;
int biggest = std::max( m_MinClearance, m_HoleClearance );
DRC_CONSTRAINT constraint;
biggest = std::max( biggest, m_HoleToHoleMin );
biggest = std::max( biggest, m_CopperEdgeClearance );
if( m_DRCEngine )
{
m_DRCEngine->QueryWorstConstraint( CLEARANCE_CONSTRAINT, constraint );