Skip to content

Commit 83dca43

Browse files
authored
fixed bug in sfmExpanding (#1827)
Fixed bug in sfmExpanding
1 parent 31039fc commit 83dca43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/aliceVision/sfm/pipeline/expanding/ExpansionProcess.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ void ExpansionProcess::remapExistingLandmarks(sfmData::SfMData & sfmData, const
149149
}
150150

151151
auto landmarkPair = landmarks.find(it->second);
152+
sfmData::Landmark l = landmarkPair->second;
152153
landmarks.erase(landmarkPair->first);
153154

154155
// re-insert the landmark with the new id
155-
sfmData.getLandmarks().emplace(trackId, landmarkPair->second);
156+
sfmData.getLandmarks().emplace(trackId, l);
156157
}
157158
}
158159

0 commit comments

Comments
 (0)