Fix Camera preview model draw regression

This commit is contained in:
Wojtek Figat
2022-06-23 23:14:33 +02:00
parent 00498106fa
commit 787d788055

View File

@@ -259,8 +259,10 @@ void Camera::Draw(RenderContext& renderContext)
&& _previewModel
&& _previewModel->IsLoaded())
{
Matrix world;
renderContext.View.GetWorldMatrix(_transform, world);
Matrix rot, tmp, world;
renderContext.View.GetWorldMatrix(_transform, tmp);
Matrix::RotationY(PI * -0.5f, rot);
Matrix::Multiply(rot, tmp, world);
GeometryDrawStateData drawState;
Mesh::DrawInfo draw;
draw.Buffer = &_previewModelBuffer;