Fixed Push and Shove and ratsnest cooperation (tracks added by PNS are taken into account while calculating ratsnest).
This commit is contained in:
parent
69cf8aa325
commit
75db0cebb7
|
@ -263,7 +263,7 @@ void PNS_ROUTER::SyncWorld()
|
||||||
if( type == PCB_TRACE_T )
|
if( type == PCB_TRACE_T )
|
||||||
item = syncTrack( t );
|
item = syncTrack( t );
|
||||||
else if( type == PCB_VIA_T )
|
else if( type == PCB_VIA_T )
|
||||||
item = syncVia( static_cast <SEGVIA*>(t) );
|
item = syncVia( static_cast<SEGVIA*>( t ) );
|
||||||
|
|
||||||
if( item )
|
if( item )
|
||||||
m_world->Add( item );
|
m_world->Add( item );
|
||||||
|
@ -754,13 +754,12 @@ bool PNS_ROUTER::FixRoute( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
||||||
|
|
||||||
void PNS_ROUTER::StopRouting()
|
void PNS_ROUTER::StopRouting()
|
||||||
{
|
{
|
||||||
|
// Update the ratsnest with new changes
|
||||||
|
m_board->GetRatsnest()->Recalculate( m_currentNet );
|
||||||
|
|
||||||
if( !RoutingInProgress() )
|
if( !RoutingInProgress() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// highlightCurrent(false);
|
|
||||||
|
|
||||||
// Update the ratsnest
|
|
||||||
m_board->GetRatsnest()->Recalculate( m_currentNet );
|
|
||||||
EraseView();
|
EraseView();
|
||||||
|
|
||||||
m_state = IDLE;
|
m_state = IDLE;
|
||||||
|
|
|
@ -369,8 +369,7 @@ void ROUTER_TOOL::startRouting()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_router->RoutingInProgress() )
|
m_router->StopRouting();
|
||||||
m_router->StopRouting();
|
|
||||||
|
|
||||||
ctls->SetAutoPan( false );
|
ctls->SetAutoPan( false );
|
||||||
ctls->ForceCursorPosition( false );
|
ctls->ForceCursorPosition( false );
|
||||||
|
|
Loading…
Reference in New Issue