Fixed case where the view matrix was being changed directly.

This commit is contained in:
leo 2015-02-28 07:10:51 +00:00
parent 168ca86c2e
commit a7da5aa79f

View file

@ -589,12 +589,10 @@ void lcCamera::DrawInterface(lcContext* Context, const lcMatrix44& ViewMatrix) c
if (IsSelected()) if (IsSelected())
{ {
Context->SetWorldViewMatrix(lcMul(ViewWorld, ViewMatrix));
float Dist = lcLength(mTargetPosition - mPosition); float Dist = lcLength(mTargetPosition - mPosition);
lcMatrix44 Projection = lcMatrix44Perspective(m_fovy, 1.33f, 0.01f, Dist); lcMatrix44 Projection = lcMatrix44Perspective(m_fovy, 1.33f, 0.01f, Dist);
Projection = lcMatrix44Inverse(Projection); Projection = lcMatrix44Inverse(Projection);
glMultMatrixf(Projection); Context->SetWorldViewMatrix(lcMul(Projection, lcMul(ViewWorld, ViewMatrix)));
float ProjVerts[16][3] = float ProjVerts[16][3] =
{ {