ScaleAndMerge: Fix fall through in switch

This commit is contained in:
2026-02-28 16:47:10 +01:00
parent 6e2c65011e
commit 0ba6f495d1
+9 -8
View File
@@ -288,15 +288,16 @@ namespace {
&Itrue[o.hkl_slot]);
}
break;
case ScaleMergeOptions::PartialityModel::Still: {
auto *cost = new ceres::AutoDiffCostFunction<IntensityStillResidual, 1, 1, 1, 1>(
case ScaleMergeOptions::PartialityModel::Still: {
auto *cost = new ceres::AutoDiffCostFunction<IntensityStillResidual, 1, 1, 1, 1>(
new IntensityStillResidual(*o.r, o.sigma));
problem.AddResidualBlock(cost,
nullptr,
&g[o.img_id],
&R_sq[o.img_id],
&Itrue[o.hkl_slot]);
}
problem.AddResidualBlock(cost,
nullptr,
&g[o.img_id],
&R_sq[o.img_id],
&Itrue[o.hkl_slot]);
}
break;
case ScaleMergeOptions::PartialityModel::Unity: {
auto *cost = new ceres::AutoDiffCostFunction<IntensityFixedResidual, 1, 1, 1>(
new IntensityFixedResidual(*o.r, o.sigma, 1.0));