Skip to content

Commit

Permalink
Camera: Remove accidental extra spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and srmainwaring committed Jan 31, 2024
1 parent 395da61 commit 495a7e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/CameraZoomPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ void CameraZoomPlugin::Impl::InitialiseCamera()
return;
}
}
// Todo compute camera sensor width here once rather than every PreUpdate()
}

//////////////////////////////////////////////////
Expand Down Expand Up @@ -424,7 +423,7 @@ void CameraZoomPlugin::PreUpdate(
gzwarn << "Requested zoom command of " << requestedZoomCmd
<< " has been clamped to " << clampedZoomCmd << ".\n";
}
this->impl->goalHfov = this->impl->refHfov / clampedZoomCmd;
this->impl->goalHfov = this->impl->refHfov / clampedZoomCmd;
this->impl->zoomChanged = false;
}

Expand Down Expand Up @@ -462,11 +461,11 @@ void CameraZoomPlugin::PreUpdate(
double newFocalLength;
if (goalFocalLength > curFocalLength)
{
newFocalLength = curFocalLength + deltaFL;
newFocalLength = curFocalLength + deltaFL;
}
else
{
newFocalLength = curFocalLength - deltaFL;
newFocalLength = curFocalLength - deltaFL;
}

const auto newHfov = CameraZoomPlugin::Impl::FocalLengthToFov(
Expand Down

0 comments on commit 495a7e0

Please sign in to comment.