Allow touching courtyards.
Fixes https://gitlab.com/kicad/code/kicad/issues/8076
This commit is contained in:
parent
0a0935e0f3
commit
737262ffa8
|
@ -189,6 +189,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
|
|||
test, F_Cu );
|
||||
clearance = constraint.GetValue().Min();
|
||||
|
||||
// Touching courtyards, or courtyards -at- the clearance distance are legal.
|
||||
clearance -= 1;
|
||||
|
||||
if( clearance >= 0 && footprintFront.Collide( &testFront, clearance, &actual, &pos ) )
|
||||
{
|
||||
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_OVERLAPPING_FOOTPRINTS );
|
||||
|
@ -216,6 +219,9 @@ bool DRC_TEST_PROVIDER_COURTYARD_CLEARANCE::testCourtyardClearances()
|
|||
test, B_Cu );
|
||||
clearance = constraint.GetValue().Min();
|
||||
|
||||
// Touching courtyards, or courtyards -at- the clearance distance are legal.
|
||||
clearance -= 1;
|
||||
|
||||
if( clearance >= 0 && footprintBack.Collide( &testBack, clearance, &actual, &pos ) )
|
||||
{
|
||||
std::shared_ptr<DRC_ITEM> drce = DRC_ITEM::Create( DRCE_OVERLAPPING_FOOTPRINTS );
|
||||
|
|
Loading…
Reference in New Issue