mirror of
https://github.com/leozide/leocad
synced 2025-01-14 08:01:45 +01:00
Use recalculated up vector. Fixes #574.
This commit is contained in:
parent
076f62bc21
commit
542304f82e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue