Skip to content

Commit

Permalink
Fixed compile issues in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fLindahl committed Nov 11, 2024
1 parent 9295f4e commit c9ec6a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/testviewer/viewerapp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ SimpleViewerApplication::UpdateCamera()
this->mayaCameraUtil.SetOrbiting(orbiting);
this->mayaCameraUtil.SetZoomIn(zoomIn);
this->mayaCameraUtil.SetZoomOut(zoomOut);
this->mayaCameraUtil.Update();
this->mayaCameraUtil.Update(0.01667f);

this->freeCamUtil.SetForwardsKey(keyboard->KeyPressed(Input::Key::W));
this->freeCamUtil.SetBackwardsKey(keyboard->KeyPressed(Input::Key::S));
Expand All @@ -545,7 +545,7 @@ SimpleViewerApplication::UpdateCamera()
this->freeCamUtil.SetAccelerateButton(keyboard->KeyPressed(Input::Key::LeftShift));

this->freeCamUtil.SetRotateButton(mouse->ButtonPressed(Input::MouseButton::LeftButton));
this->freeCamUtil.Update();
this->freeCamUtil.Update(0.01667f);

switch (this->cameraMode)
{
Expand All @@ -567,7 +567,7 @@ void
SimpleViewerApplication::ResetCamera()
{
this->freeCamUtil.Setup(this->defaultViewPoint, Math::normalize(this->defaultViewPoint));
this->freeCamUtil.Update();
this->freeCamUtil.Update(0.01667f);
this->mayaCameraUtil.Setup(Math::vec3(0.0f, 0.0f, 0.0f), this->defaultViewPoint, Math::vec3(0.0f, 1.0f, 0.0f));
}

Expand Down
2 changes: 1 addition & 1 deletion tests/testvisibility/visibilitytest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ VisibilityTest::Run()

mayaCamera.SetZoomIn(0.0f);
mayaCamera.SetZoomOut(0.0f);
mayaCamera.Update();
mayaCamera.Update(0.01667f);

inputServer->EndFrame();
frameIndex++;
Expand Down

0 comments on commit c9ec6a8

Please sign in to comment.