Treat teardrops as tracks not zones for disallow constraints.
Fixes https://gitlab.com/kicad/code/kicad/issues/13264
This commit is contained in:
parent
b070ecf0c7
commit
0094a0fc15
|
@ -1106,6 +1106,12 @@ DRC_CONSTRAINT DRC_ENGINE::EvalRules( DRC_CONSTRAINT_T aConstraintType, const BO
|
|||
case PCB_LOCATE_HOLE_T: mask = DRC_DISALLOW_HOLES; break;
|
||||
default: mask = 0; break;
|
||||
}
|
||||
|
||||
if( const ZONE* zone = dynamic_cast<const ZONE*>( a ) )
|
||||
{
|
||||
if( zone->IsTeardropArea() )
|
||||
mask = DRC_DISALLOW_TRACKS;
|
||||
}
|
||||
}
|
||||
|
||||
if( ( c->constraint.m_DisallowFlags & mask ) == 0 )
|
||||
|
|
Loading…
Reference in New Issue