File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
com.unity.render-pipelines.high-definition Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111- Fixed the indirect diffuse texture not being ignored when it should (ray tracing disabled).
1212- Fixed a performance issue with stochastic ray traced area shadows.
1313- Made more explicit the warning about raytracing and asynchronous compute. Also fixed the condition in which it appears.
14+ - Fixed a null ref exception in static sky when the default volume profile is invalid.
1415
1516### Changed
1617- Shadowmask and realtime reflection probe property are hide in Quality settings
Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ void UpdateCurrentStaticLightingSky()
125125 var profileSkyParameters = m_SkySettingsFromProfile . parameters ;
126126
127127 var defaultVolume = HDRenderPipeline . GetOrCreateDefaultVolume ( ) ;
128- defaultVolume . sharedProfile . TryGet ( skyType , out SkySettings defaultSky ) ;
128+ SkySettings defaultSky = null ;
129+ if ( defaultVolume . sharedProfile != null ) // This can happen with old projects.
130+ defaultVolume . sharedProfile . TryGet ( skyType , out defaultSky ) ;
129131 var defaultSkyParameters = defaultSky != null ? defaultSky . parameters : null ; // Can be null if the profile does not contain the component.
130132
131133 // Seems to inexplicably happen sometimes on domain reload.
You can’t perform that action at this time.
0 commit comments