Skip to content

Commit

Permalink
Update sfmDataIO test for camera lock
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor committed Apr 4, 2024
1 parent 44bfb3b commit f8149b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/aliceVision/sfmDataIO/sfmDataIO_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ sfmData::SfMData createTestScene(std::size_t viewsCount = 2, std::size_t observa
sfmData.getViews().emplace(viewId, view);

// Add poses
sfmData.setPose(*view, sfmData::CameraPose());
sfmData::CameraPose pose;
if (i == 0)
{
pose.lock();
}

sfmData.setPose(*view, pose);

// Add intrinsics
if (!sharedIntrinsic || (i == 0))
Expand Down

0 comments on commit f8149b8

Please sign in to comment.