Skip to content

Commit f6acad2

Browse files
pigselatedEvergreen
authored andcommitted
UUM-138027: Fix APV breaking when cleared twice
1 parent 8a595be commit f6acad2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Packages/com.unity.render-pipelines.core/Runtime/Lighting/ProbeVolume/ProbeReferenceVolume.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,11 +1469,13 @@ internal void RemovePendingScene(string sceneGUID, List<int> cellList)
14691469
}
14701470

14711471
// Remove bricks and empty cells
1472-
foreach (var cellIndex in cellList)
1472+
if (cellList != null)
14731473
{
1474-
RemoveCell(cellIndex);
1474+
foreach (var cellIndex in cellList)
1475+
{
1476+
RemoveCell(cellIndex);
1477+
}
14751478
}
1476-
14771479
ClearDebugData();
14781480
ComputeCellGlobalInfo();
14791481
}

0 commit comments

Comments
 (0)