Browse Source

Treat teardrops as tracks not zones for disallow constraints.

Fixes https://gitlab.com/kicad/code/kicad/issues/13264
7.0
Jeff Young 3 years ago
parent
commit
0094a0fc15
  1. 6
      pcbnew/drc/drc_engine.cpp

6
pcbnew/drc/drc_engine.cpp

@ -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…
Cancel
Save