Don't check for board edge collision on castellated pads.

Fixes https://gitlab.com/kicad/code/kicad/issues/10970
This commit is contained in:
Jeff Young 2022-03-14 18:07:13 +00:00
parent c34dc13a8e
commit 2ec21c7720
2 changed files with 6 additions and 1 deletions

View File

@ -231,6 +231,12 @@ bool DRC_TEST_PROVIDER_EDGE_CLEARANCE::Run()
if( isInvisibleText( item ) ) if( isInvisibleText( item ) )
return true; // Continue with other items return true; // Continue with other items
if( item->Type() == PCB_PAD_T
&& static_cast<PAD*>( item )->GetProperty() == PAD_PROP::CASTELLATED )
{
return true;
}
const std::shared_ptr<SHAPE>& itemShape = item->GetEffectiveShape(); const std::shared_ptr<SHAPE>& itemShape = item->GetEffectiveShape();
for( PCB_LAYER_ID testLayer : { Edge_Cuts, Margin } ) for( PCB_LAYER_ID testLayer : { Edge_Cuts, Margin } )

View File

@ -336,7 +336,6 @@ public:
*/ */
void SetOrientation( const EDA_ANGLE& aAngle ); void SetOrientation( const EDA_ANGLE& aAngle );
/** /**
* Return the rotation angle of the pad. * Return the rotation angle of the pad.
*/ */