Use recalculated up vector. Fixes #574.

This commit is contained in:
Leonardo Zide 2020-12-28 10:16:40 -08:00
parent 076f62bc21
commit 542304f82e

View file

@ -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);