From 35049a2c68f17b2ee74b0f2a204568d3985e4497 Mon Sep 17 00:00:00 2001 From: Adrien de Tocqueville Date: Thu, 17 Dec 2020 13:15:43 +0100 Subject: [PATCH] Init scene camera debug framesettings --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + .../Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 7ac109f0b0f..f4ab1b4cb01 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed baked light being included into the ray tracing light cluster (case 1296203). - Fixed enums UI for the shadergraph nodes. - Fixed ShaderGraph stack blocks appearing when opening the settings in Hair and Eye ShaderGraphs. +- Fixed white screen when undoing in the editor. ### Changed - Removed the material pass probe volumes evaluation mode. diff --git a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs index 125120fabad..c5670155fb5 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/Settings/FrameSettingsHistory.cs @@ -62,7 +62,7 @@ string IFrameSettingsHistoryContainer.panelName => "Scene Camera"; public MinimalHistoryContainer() - => m_FrameSettingsHistory.debug = HDRenderPipeline.defaultAsset?.GetDefaultFrameSettings(FrameSettingsRenderType.Camera) ?? new FrameSettings(); + => m_FrameSettingsHistory.debug = HDRenderPipeline.defaultAsset?.GetDefaultFrameSettings(FrameSettingsRenderType.Camera) ?? FrameSettings.NewDefaultCamera(); Action IDebugData.GetReset() //caution: we actually need to retrieve the