router: when no collision search context is provided, assume differentNetsOnly is true
This commit is contained in:
parent
31961766d7
commit
a0a68d198c
|
@ -152,9 +152,14 @@ bool ITEM::collideSimple( const ITEM* aHead, const NODE* aNode,
|
||||||
// fixme: this f***ing singleton must go...
|
// fixme: this f***ing singleton must go...
|
||||||
ROUTER* router = ROUTER::GetInstance();
|
ROUTER* router = ROUTER::GetInstance();
|
||||||
ROUTER_IFACE* iface = router ? router->GetInterface() : nullptr;
|
ROUTER_IFACE* iface = router ? router->GetInterface() : nullptr;
|
||||||
bool differentNetsOnly = aCtx && aCtx->options.m_differentNetsOnly;
|
bool differentNetsOnly = true;
|
||||||
int clearance;
|
int clearance;
|
||||||
|
|
||||||
|
if( aCtx )
|
||||||
|
{
|
||||||
|
differentNetsOnly = aCtx->options.m_differentNetsOnly;
|
||||||
|
}
|
||||||
|
|
||||||
// Hole-to-hole collisions don't have anything to do with nets
|
// Hole-to-hole collisions don't have anything to do with nets
|
||||||
if( Kind() == HOLE_T && aHead->Kind() == HOLE_T )
|
if( Kind() == HOLE_T && aHead->Kind() == HOLE_T )
|
||||||
differentNetsOnly = false;
|
differentNetsOnly = false;
|
||||||
|
|
Loading…
Reference in New Issue