pns: Non-copper pads are not treated as obstacles.

This commit is contained in:
Angus Gratton 2014-11-26 15:46:47 +01:00 committed by Maciej Suminski
parent 03f7003c00
commit 6c4808bd49
1 changed files with 5 additions and 0 deletions

View File

@ -127,15 +127,20 @@ PNS_ITEM* PNS_ROUTER::syncPad( D_PAD* aPad )
case PAD_CONN: case PAD_CONN:
{ {
LSET lmsk = aPad->GetLayerSet(); LSET lmsk = aPad->GetLayerSet();
bool is_copper = false;
for( int i = 0; i < MAX_CU_LAYERS; i++ ) for( int i = 0; i < MAX_CU_LAYERS; i++ )
{ {
if( lmsk[i] ) if( lmsk[i] )
{ {
is_copper = true;
layers = PNS_LAYERSET( i ); layers = PNS_LAYERSET( i );
break; break;
} }
} }
if( !is_copper )
return NULL;
} }
break; break;