Route Other End: Perform Steps in one Undo Commit

This commit is contained in:
Mike Williams 2022-08-17 14:47:56 -04:00
parent 82f8cd72a3
commit dc20e24c4a
1 changed files with 9 additions and 1 deletions

View File

@ -1281,7 +1281,13 @@ void ROUTER_TOOL::performRouting()
int currentLayer = m_router->GetCurrentLayer(); int currentLayer = m_router->GetCurrentLayer();
// Commit whatever we've fixed and restart routing from the other end // Commit whatever we've fixed and restart routing from the other end
if( m_router->Placer()->HasPlacedAnything() )
{
m_router->CommitRouting(); m_router->CommitRouting();
m_iface->SetCommitFlags( APPEND_UNDO );
}
else
m_router->StopRouting();
if( otherEndLayers.Overlaps( currentLayer ) ) if( otherEndLayers.Overlaps( currentLayer ) )
m_router->StartRouting( otherEnd, &current, currentLayer ); m_router->StartRouting( otherEnd, &current, currentLayer );
@ -1397,6 +1403,8 @@ void ROUTER_TOOL::performRouting()
} }
m_router->CommitRouting(); m_router->CommitRouting();
// Reset to normal for next route
m_iface->SetCommitFlags( 0 );
finishInteractive(); finishInteractive();
} }