Skip to content

Commit 2562f57

Browse files
sebastienlagardepmavridisFrancescoC-unity
authored
[HDRP] Backport misc PRs (#6412)
* Update ray tracing and path tracing docs regarding custom interpolator limitations (#6126) * Merge Hd/bugfix #6213 * Fix MSAA resolve of stencil buffer #6251 * update screenshots Co-authored-by: Pavlos Mavridis <[email protected]> Co-authored-by: FrancescoC-unity <[email protected]>
1 parent 8aa3c14 commit 2562f57

File tree

23 files changed

+83
-30
lines changed

23 files changed

+83
-30
lines changed
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading

com.unity.render-pipelines.core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88

99
### Fixed
1010
- Fixed potentially conflicting runtime Rendering Debugger UI command by adding an option to disable runtime UI altogether (1345783).
11+
- Fixed issue when changing volume profiles at runtime with a script (case 1364256).
1112

1213
## [10.7.0] - 2021-07-02
1314

com.unity.render-pipelines.core/Editor/Volume/VolumeEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ void RefreshEffectListEditor(VolumeProfile asset)
4545
{
4646
m_ComponentList.Clear();
4747

48+
asset.Sanitize();
49+
4850
if (asset != null)
4951
m_ComponentList.Init(asset, new SerializedObject(asset));
5052
}

com.unity.render-pipelines.core/Runtime/Volume/VolumeProfile.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,5 +314,15 @@ internal int GetComponentListHashCode()
314314
return hash;
315315
}
316316
}
317+
318+
/// <summary>
319+
/// Removes any components that were destroyed externally from the iternal list of components
320+
/// </summary>
321+
internal void Sanitize()
322+
{
323+
for (int i = components.Count - 1; i >= 0; i--)
324+
if (components[i] == null)
325+
components.RemoveAt(i);
326+
}
317327
}
318328
}

0 commit comments

Comments
 (0)