editor: jump to camera will retain screen aspect

This commit is contained in:
Turanszki Janos
2021-08-24 20:20:33 +02:00
parent 93bdf5c21c
commit b549e6c597
+3
View File
@@ -770,6 +770,9 @@ void EditorComponent::Load()
if (cam != nullptr)
{
wiScene::GetCamera() = *cam;
// camera aspect should be always for the current screen
wiScene::GetCamera().width = renderPath->GetInternalResolution().x;
wiScene::GetCamera().height = renderPath->GetInternalResolution().y;
}
}
}