[SRP] Fix issue when changing volume profiles at runtime with a script by pmavridis · Pull Request #5882 · Unity-Technologies/Graphics · GitHub
Skip to content

[SRP] Fix issue when changing volume profiles at runtime with a script#5882

Merged
sebastienlagarde merged 5 commits into
hd/bugfixfrom
srp/case_1364256
Nov 4, 2021
Merged

[SRP] Fix issue when changing volume profiles at runtime with a script#5882
sebastienlagarde merged 5 commits into
hd/bugfixfrom
srp/case_1364256

Conversation

@pmavridis

@pmavridis pmavridis commented Oct 4, 2021

Copy link
Copy Markdown
Contributor

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1364256/

Some volume components of a volume profile can be destroyed externally (for example by the editor when exiting play mode, if they were created at runtime). In this PR I have added a method to check and remove the "zombies".


Testing status

I have tested using the repro scene. The nullref error does not repro anymore after my change.

@github-actions

github-actions Bot commented Oct 4, 2021

Copy link
Copy Markdown

@pmavridis pmavridis requested a review from a team October 5, 2021 08:24

@remi-chapelain remi-chapelain left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix makes sense and testing seems sufficient given the specific use case. ✔️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants