diff --git a/common/camera.cpp b/common/camera.cpp index 07bfbdc3..80cbfc7e 100644 --- a/common/camera.cpp +++ b/common/camera.cpp @@ -519,7 +519,7 @@ void Camera::UpdateBoundingBox() lcVector3 FrontVector(mPosition - mTargetPosition); float len = FrontVector.Length(); - lcMatrix44 Mat = lcMatrix44Inverse(mWorldView); + lcMatrix44 Mat = lcMatrix44AffineInverse(mWorldView); Mat.SetTranslation(mPosition); BoundingBoxCalculate((Matrix*)&Mat); @@ -655,7 +655,7 @@ void Camera::Render(float fLineWidth) glPushMatrix (); - lcMatrix44 ViewWorld = lcMatrix44Inverse(mWorldView); + lcMatrix44 ViewWorld = lcMatrix44AffineInverse(mWorldView); glMultMatrixf(ViewWorld); lcMatrix44 InvProjection = lcMatrix44Inverse(lcMatrix44Perspective(m_fovy, 1.33f, 0.01f, len)); diff --git a/common/project.cpp b/common/project.cpp index f15c86d4..acda41db 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -2329,7 +2329,7 @@ void Project::RenderOverlays(View* view) } } - lcMatrix44 Mat = lcMatrix44Inverse(Cam->mWorldView); + lcMatrix44 Mat = lcMatrix44AffineInverse(Cam->mWorldView); Mat.SetTranslation(m_OverlayCenter); // Draw the circles. @@ -7165,7 +7165,7 @@ bool Project::OnKeyDown(char nKey, bool bControl, bool bShift) if (camera->IsSide ()) { - lcMatrix44 mat = lcMatrix44Inverse(camera->mWorldView); + lcMatrix44 mat = lcMatrix44AffineInverse(camera->mWorldView); switch (nKey) {