FIX:Calculation returns auto is optimized in camera class
Change-Id: I753b96702955a320872cb34893de5e201c407551 (cherry picked from commit 1f2c5e8801fc58db8c438a0ae8c5afd62023e5ff)
This commit is contained in:
parent
28532b990b
commit
531757366e
1 changed files with 1 additions and 1 deletions
|
@ -598,7 +598,7 @@ void Camera::update_zenit()
|
|||
m_zenit = Geometry::rad2deg(0.5 * M_PI - std::acos(std::clamp(-get_dir_forward().dot(Vec3d::UnitZ()), -1.0, 1.0))); }
|
||||
|
||||
void Camera::update_target() {
|
||||
auto temptarget = get_position() + m_distance * get_dir_forward();
|
||||
Vec3d temptarget = get_position() + m_distance * get_dir_forward();
|
||||
if (!(temptarget-m_target).isApprox(Vec3d::Zero())){
|
||||
m_target = temptarget;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue