Skip to content

Commit a0599e8

Browse files
committed
Fix Ceres version check
1 parent eeb9678 commit a0599e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

opensfm/src/bundle/src/bundle_adjuster.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ void BundleAdjuster::Run() {
570570
problem.SetParameterBlockConstant(data.data());
571571
}else if (i.second.GetValue().GetProjectionType() == geometry::ProjectionType::BROWN){
572572
// Keep aspect ratio constant (BROWN only)
573-
#if CERES_VERSION_MAJOR > 1
573+
#if CERES_VERSION_MAJOR == 2 && CERES_VERSION_MINOR >= 2
574574
ceres::SubsetManifold *subset_parameterization = new ceres::SubsetManifold(data.size(), { 6 });
575575
problem.SetManifold(data.data(), subset_parameterization);
576576
#else

0 commit comments

Comments
 (0)