Treat teardrops as tracks not zones for disallow constraints.

Fixes https://gitlab.com/kicad/code/kicad/issues/13264
This commit is contained in:
Jeff Young 2022-12-26 11:32:43 +00:00
parent b070ecf0c7
commit 0094a0fc15
1 changed files with 6 additions and 0 deletions

View File

@ -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; case PCB_LOCATE_HOLE_T: mask = DRC_DISALLOW_HOLES; break;
default: mask = 0; 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 ) if( ( c->constraint.m_DisallowFlags & mask ) == 0 )