router: when no collision search context is provided, assume differentNetsOnly is true

(cherry picked from commit a0a68d198c)
This commit is contained in:
Tomasz Wlostowski 2023-06-22 23:52:11 +02:00 committed by Wayne Stambaugh
parent 152dc56df4
commit 2f35d97b27
1 changed files with 6 additions and 1 deletions

View File

@ -152,9 +152,14 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode,
// fixme: this f***ing singleton must go...
ROUTER* router = ROUTER::GetInstance();
ROUTER_IFACE* iface = router ? router->GetInterface() : nullptr;
bool differentNetsOnly = aCtx && aCtx->options.m_differentNetsOnly;
bool differentNetsOnly = true;
int clearance;
if( aCtx )
{
differentNetsOnly = aCtx->options.m_differentNetsOnly;
}
// Hole-to-hole collisions don't have anything to do with nets
if( Kind() == HOLE_T && aHead->Kind() == HOLE_T )
differentNetsOnly = false;