From 542304f82e3cf8c744996b9e585ffbaa1a49777e Mon Sep 17 00:00:00 2001 From: Leonardo Zide <leozide@gmail.com> Date: Mon, 28 Dec 2020 10:16:40 -0800 Subject: [PATCH] Use recalculated up vector. Fixes #574. --- common/camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/camera.cpp b/common/camera.cpp index 1cfa1af5..df181e21 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -1087,7 +1087,7 @@ void lcCamera::SetViewpoint(const lcVector3& Position, const lcVector3& Target, SideVector = lcCross(Direction, Up); UpVector = lcCross(SideVector, Direction); UpVector.Normalize(); - mUpVector = Up; + mUpVector = UpVector; ChangeKey(mPositionKeys, mPosition, 1, false); ChangeKey(mTargetPositionKeys, mTargetPosition, 1, false);