From f3ce4f13acd82e74edda0afa1b9c0c3c351a064d Mon Sep 17 00:00:00 2001 From: FrancescoC-Unity Date: Wed, 15 Sep 2021 10:44:05 +0200 Subject: [PATCH] Fix issue when debug probes is enabled when baking --- .../Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.Debug.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/com.unity.render-pipelines.core/Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.Debug.cs b/com.unity.render-pipelines.core/Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.Debug.cs index 7eaa3ea32dd..6f5d82c0d4e 100644 --- a/com.unity.render-pipelines.core/Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.Debug.cs +++ b/com.unity.render-pipelines.core/Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.Debug.cs @@ -254,7 +254,8 @@ void CreateInstancedProbes() List probeBuffers = new List(); List props = new List(); CellChunkInfo chunks; - m_ChunkInfo.TryGetValue(cell.index, out chunks); + if (!m_ChunkInfo.TryGetValue(cell.index, out chunks)) + continue; Vector4[] texels = new Vector4[kProbesPerBatch]; float[] validity = new float[kProbesPerBatch];