Skip to content

Commit

Permalink
Skip second matching image if it's unmatched.
Browse files Browse the repository at this point in the history
  • Loading branch information
zlogic committed May 26, 2024
1 parent afcce0b commit 175ffc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/reconstruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ impl ImageReconstruction {

for (img2_index, img2_filename) in img_filenames.iter().skip(img1_index + 1).enumerate()
{
if !linked_images.contains(&img2_index) {
continue;
}
let img2 = match SourceImage::load(img2_filename) {
Ok(img1) => img1,
Err(err) => {
Expand Down

0 comments on commit 175ffc9

Please sign in to comment.