Skip to content

Commit

Permalink
fixed bug in sfmExpanding (#1827)
Browse files Browse the repository at this point in the history
Fixed bug in sfmExpanding
  • Loading branch information
mh0g authored Feb 13, 2025
1 parent 31039fc commit 83dca43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aliceVision/sfm/pipeline/expanding/ExpansionProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,11 @@ void ExpansionProcess::remapExistingLandmarks(sfmData::SfMData & sfmData, const
}

auto landmarkPair = landmarks.find(it->second);
sfmData::Landmark l = landmarkPair->second;
landmarks.erase(landmarkPair->first);

// re-insert the landmark with the new id
sfmData.getLandmarks().emplace(trackId, landmarkPair->second);
sfmData.getLandmarks().emplace(trackId, l);
}
}

Expand Down

0 comments on commit 83dca43

Please sign in to comment.