Improved ratsnest updates performance during routing

This commit is contained in:
Tomasz Włostowski 2017-07-02 23:05:23 +02:00
parent eea41dbc6f
commit c01c25b258
1 changed files with 12 additions and 7 deletions

View File

@ -766,11 +766,16 @@ void CN_CONNECTIVITY_ALGO::propagateConnections()
{ {
if( item->CanChangeNet() ) if( item->CanChangeNet() )
{ {
item->Parent()->SetNetCode( cluster->OriginNet() ); if( item->Parent()->GetNetCode() != cluster->OriginNet() )
{
MarkNetAsDirty( item->Parent()->GetNetCode() );
MarkNetAsDirty( cluster->OriginNet() ); MarkNetAsDirty( cluster->OriginNet() );
item->Parent()->SetNetCode( cluster->OriginNet() );
n_changed++; n_changed++;
} }
} }
}
if( n_changed ) if( n_changed )
wxLogTrace( "CN", "Cluster %p : net : %d %s\n", cluster.get(), wxLogTrace( "CN", "Cluster %p : net : %d %s\n", cluster.get(),