@@ -670,7 +670,7 @@ internal static void BakeAdjustmentVolume(ProbeVolumeBakingSet bakingSet, ProbeA
670670 failed |= ! layerMaskJob . Step ( ) ;
671671
672672 // Bake probe SH
673- s_BakeData . InitLightingJob ( m_BakingSet , uniquePositions , BakeType . ApvOnly ) ;
673+ s_BakeData . InitLightingJob ( bakingSet , touchup , uniquePositions , BakeType . ApvOnly ) ;
674674 LightingBaker lightingJob = s_BakeData . lightingJob ;
675675 while ( ! failed && lightingJob . currentStep < lightingJob . stepCount )
676676 failed |= ! lightingJob . Step ( ) ;
@@ -680,7 +680,7 @@ internal static void BakeAdjustmentVolume(ProbeVolumeBakingSet bakingSet, ProbeA
680680 foreach ( ( int uniqueProbeIndex , int cellIndex , int i ) in bakedProbes )
681681 {
682682 ref var cell = ref bakingCells [ cellIndex ] ;
683- cell . SetBakedData ( m_BakingSet , m_BakingBatch , cellVolumes [ cellIndex ] , i , uniqueProbeIndex ,
683+ cell . SetBakedData ( bakingSet , m_BakingBatch , cellVolumes [ cellIndex ] , i , uniqueProbeIndex ,
684684 lightingJob . irradiance [ uniqueProbeIndex ] , lightingJob . validity [ uniqueProbeIndex ] ,
685685 layerMaskJob . renderingLayerMasks , virtualOffsetJob . offsets ,
686686 skyOcclusionJob . occlusion , skyOcclusionJob . encodedDirections , lightingJob . occlusion ) ;
@@ -696,8 +696,8 @@ internal static void BakeAdjustmentVolume(ProbeVolumeBakingSet bakingSet, ProbeA
696696 {
697697 // Validate baking cells size before any global state modifications
698698 var chunkSizeInProbes = ProbeBrickPool . GetChunkSizeInProbeCount ( ) ;
699- var hasVirtualOffsets = m_BakingSet . settings . virtualOffsetSettings . useVirtualOffset ;
700- var hasRenderingLayers = m_BakingSet . useRenderingLayers ;
699+ var hasVirtualOffsets = bakingSet . settings . virtualOffsetSettings . useVirtualOffset ;
700+ var hasRenderingLayers = bakingSet . useRenderingLayers ;
701701
702702 if ( ValidateBakingCellsSize ( bakingCells , chunkSizeInProbes , hasVirtualOffsets , hasRenderingLayers ) )
703703 {
@@ -707,8 +707,8 @@ internal static void BakeAdjustmentVolume(ProbeVolumeBakingSet bakingSet, ProbeA
707707 ComputeValidityMasks ( cell ) ;
708708 }
709709
710- // Attempt to write the result to disk
711- if ( WriteBakingCells ( bakingCells ) )
710+ // Attempt to write the result to disk.
711+ if ( WriteBakingCells ( bakingSet , bakingCells ) )
712712 {
713713 // Reload everything
714714 AssetDatabase . SaveAssets ( ) ;
0 commit comments