Skip to content

Commit

Permalink
Sort index before assign pairId
Browse files Browse the repository at this point in the history
  • Loading branch information
Yin committed Jan 9, 2025
1 parent 2add561 commit 0482afa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ BRp.findEdgeControlPoints = function( edges ){
let srcIndex = src.poolIndex();
let tgtIndex = tgt.poolIndex();

let pairId = `${srcIndex}_${tgtIndex}_${edgeIsUnbundled}`;
let sortIndex = [ srcIndex, tgtIndex ].sort();
let pairId = `${sortIndex[0]}_${sortIndex[1]}_${edgeIsUnbundled}`;

let tableEntry = hashTable.get( pairId );

Expand Down

0 comments on commit 0482afa

Please sign in to comment.