Skip to content
Snippets Groups Projects
Commit 23bf7ef3 authored by mwinter's avatar mwinter Committed by Mark Winter
Browse files

Removed buggy conditional from patching code, not as efficient, but correct

parent 9dac97fd
Branches
No related tags found
No related merge requests found
......@@ -214,16 +214,16 @@ void patchUpResults()
curPath->trackletID = newTrackletID;
}
}
if ( newTrackletID < 0 )
{
// Or from outgoing assignment if the other two don't exist
int nxtGIdx = gAssignedConnectOut[destGIdx];
if ( nxtGIdx >= 0 )
{
newTrackletID = gConnectOut[destGIdx][nxtGIdx]->trackletID;
curPath->trackletID = newTrackletID;
}
}
//if ( newTrackletID < 0 )
//{
// // Or from outgoing assignment if the other two don't exist
// int nxtGIdx = gAssignedConnectOut[destGIdx];
// if ( nxtGIdx >= 0 )
// {
// newTrackletID = gConnectOut[destGIdx][nxtGIdx]->trackletID;
// curPath->trackletID = newTrackletID;
// }
//}
if ( newTrackletID < 0 )
{
//Otherwise add new tracklet to list etc. and set id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment