Manual cherry-pick of a214ac0310
.
This commit is contained in:
parent
e759c4d27a
commit
97b273905a
|
@ -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 )
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue