mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed case where the view matrix was being changed directly.
This commit is contained in:
parent
168ca86c2e
commit
a7da5aa79f
1 changed files with 1 additions and 3 deletions
|
@ -589,12 +589,10 @@ void lcCamera::DrawInterface(lcContext* Context, const lcMatrix44& ViewMatrix) c
|
|||
|
||||
if (IsSelected())
|
||||
{
|
||||
Context->SetWorldViewMatrix(lcMul(ViewWorld, ViewMatrix));
|
||||
|
||||
float Dist = lcLength(mTargetPosition - mPosition);
|
||||
lcMatrix44 Projection = lcMatrix44Perspective(m_fovy, 1.33f, 0.01f, Dist);
|
||||
Projection = lcMatrix44Inverse(Projection);
|
||||
glMultMatrixf(Projection);
|
||||
Context->SetWorldViewMatrix(lcMul(Projection, lcMul(ViewWorld, ViewMatrix)));
|
||||
|
||||
float ProjVerts[16][3] =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue