editor: selected camera preview render

This commit is contained in:
Turánszki János
2024-02-11 17:54:53 +01:00
parent 640595a152
commit 27c848944c
10 changed files with 152 additions and 52 deletions
+7
View File
@@ -1925,6 +1925,13 @@ void EditorComponent::PostUpdate()
RenderPath2D::PostUpdate();
renderPath->PostUpdate();
// This needs to be after scene was updated fully by EditorComponent's renderPath
// Because this will just render the scene without updating its resources
if (renderPath->getSceneUpdateEnabled()) // only update preview if scene was updated at all by main renderPath
{
componentsWnd.cameraComponentWnd.preview.RenderPreview();
}
}
void EditorComponent::Render() const
{