Commit 6c4808bd authored by Angus Gratton's avatar Angus Gratton Committed by Maciej Suminski
Browse files

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

parent 03f7003c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -127,15 +127,20 @@ PNS_ITEM* PNS_ROUTER::syncPad( D_PAD* aPad )
    case PAD_CONN:
        {
            LSET lmsk = aPad->GetLayerSet();
            bool is_copper = false;

            for( int i = 0; i < MAX_CU_LAYERS; i++ )
            {
                if( lmsk[i] )
                {
                    is_copper = true;
                    layers = PNS_LAYERSET( i );
                    break;
                }
            }

            if( !is_copper )
                return NULL;
        }
        break;