We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3d659a commit aa1ef11Copy full SHA for aa1ef11
1 file changed
Packages/com.unity.render-pipelines.core/Editor/Lighting/ProbeVolume/ProbeGIBaking.Serialization.cs
@@ -1070,7 +1070,11 @@ unsafe static void WriteBakingCells(BakingCell[] bakingCells)
1070
1071
AssetDatabase.ImportAsset(cellDataFilename);
1072
AssetDatabase.ImportAsset(cellOptionalDataFilename);
1073
- AssetDatabase.ImportAsset(cellProbeOcclusionDataFilename);
+ // If we did not write a probe occlusion file (because it was zero bytes), don't try to load it (UUM-101480)
1074
+ if (probeOcclusion.Length > 0)
1075
+ {
1076
+ AssetDatabase.ImportAsset(cellProbeOcclusionDataFilename);
1077
+ }
1078
AssetDatabase.ImportAsset(cellBricksDataFilename);
1079
AssetDatabase.ImportAsset(cellSharedDataFilename);
1080
AssetDatabase.ImportAsset(cellSupportDataFilename);
0 commit comments