Skip to content

Commit

Permalink
Merge pull request #1475 from alicevision/fix/cameraPoseLock
Browse files Browse the repository at this point in the history
CameraPose lock was not correctly loaded
  • Loading branch information
fabiencastan authored Jun 20, 2023
2 parents 0895a96 + a0bbdf2 commit 1907b18
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/aliceVision/sfmData/SfMData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 1907b18

Please sign in to comment.