Manual cherry-pick of a214ac0310.

This commit is contained in:
Jeff Young 2023-03-26 21:06:24 +01:00
parent e759c4d27a
commit 97b273905a
2 changed files with 12 additions and 1 deletions

View File

@ -1389,6 +1389,13 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO
constraint.m_Value.SetMin( m_designSettings->m_MinClearance ); constraint.m_Value.SetMin( m_designSettings->m_MinClearance );
} }
if( a_is_non_copper || b_is_non_copper )
{
REPORT( _( "Board and netclass clearances apply only between copper items." ) );
constraint.m_Type = NULL_CONSTRAINT;
constraint.m_DisallowFlags = 0;
}
return constraint; return constraint;
} }
else if( aConstraintType == DIFF_PAIR_GAP_CONSTRAINT ) else if( aConstraintType == DIFF_PAIR_GAP_CONSTRAINT )

View File

@ -766,7 +766,11 @@ int BOARD_INSPECTION_TOOL::InspectClearance( const TOOL_EVENT& aEvent )
{ {
// Different nets (or one or both unconnected).... // Different nets (or one or both unconnected)....
constraint = drcEngine.EvalRules( CLEARANCE_CONSTRAINT, a, b, layer, r ); constraint = drcEngine.EvalRules( CLEARANCE_CONSTRAINT, a, b, layer, r );
clearance = constraint.m_Value.Min();
if( constraint.IsNull() )
clearance = 0;
else
clearance = constraint.m_Value.Min();
if( compileError ) if( compileError )
reportCompileError( r ); reportCompileError( r );