From b549e6c597953ba0471465ecdbeb6b8ad4ef5f74 Mon Sep 17 00:00:00 2001 From: Turanszki Janos Date: Tue, 24 Aug 2021 20:20:33 +0200 Subject: [PATCH] editor: jump to camera will retain screen aspect --- Editor/Editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Editor/Editor.cpp b/Editor/Editor.cpp index c80b0fab0..5a3ddce8e 100644 --- a/Editor/Editor.cpp +++ b/Editor/Editor.cpp @@ -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; } } }