From 37ee12876ba5271c2c70b42d12cf18686ac8bad6 Mon Sep 17 00:00:00 2001 From: kielnino Date: Fri, 6 Feb 2026 08:32:22 +0100 Subject: [PATCH] Correct definition of is_fixed in BundleShotPoses. fixes #1083 --- opensfm/src/sfm/src/ba_helpers.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensfm/src/sfm/src/ba_helpers.cc b/opensfm/src/sfm/src/ba_helpers.cc index a92819bd8..8c8d1d5ef 100644 --- a/opensfm/src/sfm/src/ba_helpers.cc +++ b/opensfm/src/sfm/src/ba_helpers.cc @@ -498,7 +498,7 @@ py::dict BAHelpers::BundleShotPoses( shot_cameras[shot_id] = shot.GetCamera()->id; shot_rig_cameras[shot_id] = shot_n_rig_camera.second->id; - const auto is_fixed = shot_ids.find(shot_id) != shot_ids.end(); + const auto is_fixed = shot_ids.find(shot_id) == shot_ids.end(); if (!is_fixed) { if (config["bundle_use_gps"].cast()) { const auto pos = shot.GetShotMeasurements().gps_position_;