From 8c3fe59c4db98aa5972d70860154fb21c5a23ab0 Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 27 Apr 2021 09:45:28 +0200 Subject: [PATCH 1/2] Add null check --- .../RenderPipeline/Raytracing/SubSurfaceScatteringEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Raytracing/SubSurfaceScatteringEditor.cs b/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Raytracing/SubSurfaceScatteringEditor.cs index 2b83edeb1b0..734f153dc94 100644 --- a/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Raytracing/SubSurfaceScatteringEditor.cs +++ b/com.unity.render-pipelines.high-definition/Editor/RenderPipeline/Raytracing/SubSurfaceScatteringEditor.cs @@ -29,7 +29,7 @@ public override void OnInspectorGUI() } // If ray tracing is supported display the content of the volume component - if ((RenderPipelineManager.currentPipeline as HDRenderPipeline).rayTracingSupported) + if (RenderPipelineManager.currentPipeline != null && (RenderPipelineManager.currentPipeline as HDRenderPipeline).rayTracingSupported) { PropertyField(m_RayTracing); if (m_RayTracing.overrideState.boolValue && m_RayTracing.value.boolValue) From 4c1bbb7de121a874dd6d834188b4de12c654ef0c Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Tue, 27 Apr 2021 09:46:52 +0200 Subject: [PATCH 2/2] changelog --- com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index a0f0029cc18..a67a929d83b 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -159,6 +159,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed CustomPassUtils scaling issues when used with RTHandles allocated from a RenderTexture. - Fixed ResourceReloader that was not call anymore at pipeline construction - Fixed undo of some properties on light editor. +- Fixed null reference exception in Raytracing SSS volume component. ### Changed - Changed Window/Render Pipeline/HD Render Pipeline Wizard to Window/Rendering/HDRP Wizard