Browse Source

Update collide for hole

As hole don't keep track of the net, update the collide function to keep it working
newinvert
Lucas Dumont 3 years ago
committed by Jeff Young
parent
commit
b1a4353c34
  1. 2
      pcbnew/router/pns_item.cpp

2
pcbnew/router/pns_item.cpp

@ -111,7 +111,7 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode,
if( Kind() == HOLE_T && aHead->Kind() == HOLE_T )
differentNetsOnly = false;
if( differentNetsOnly && m_net == aHead->m_net && m_net >= 0 && aHead->m_net >= 0 )
if( differentNetsOnly && Net() == aHead->m_net && aHead->m_net >= 0 )
{
// same nets? no clearance!
clearance = -1;

Loading…
Cancel
Save