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
This commit is contained in:
parent
dadcc70a3d
commit
000998ccae
|
@ -1050,9 +1050,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 );
|
||||
|
|
Loading…
Reference in New Issue