From a0bbdf2f486261431e1a135386e29fe5188ed149 Mon Sep 17 00:00:00 2001 From: Fabien SERVANT Date: Tue, 20 Jun 2023 12:53:04 +0200 Subject: [PATCH] CameraPose lock was not correctly loaded --- src/aliceVision/sfmData/SfMData.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/aliceVision/sfmData/SfMData.cpp b/src/aliceVision/sfmData/SfMData.cpp index c2da004938..bd5bf310b0 100644 --- a/src/aliceVision/sfmData/SfMData.cpp +++ b/src/aliceVision/sfmData/SfMData.cpp @@ -231,7 +231,7 @@ void SfMData::setPose(const View& view, const CameraPose& absolutePose) // Pose dedicated for this view (independant from rig, even if it is potentially part of a rig) if (view.isPoseIndependant()) { - viewPose.setTransform(absolutePose.getTransform()); + viewPose = absolutePose; return; } @@ -242,6 +242,12 @@ void SfMData::setPose(const View& view, const CameraPose& absolutePose) RigSubPose& subPose = getRigSubPose(view); viewPose.setTransform(subPose.pose.inverse() * absolutePose.getTransform()); + + if (absolutePose.isLocked()) + { + viewPose.lock(); + } + return; }