diff options
author | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2024-02-26 01:34:40 -0800 |
---|---|---|
committer | Jonathan "Geenz" Goodman <geenz@geenzo.com> | 2024-02-26 01:34:40 -0800 |
commit | 4ed5b59a601cfc58c3d5a5d4c1b56d4cdc73be2c (patch) | |
tree | 5d335f987afac75476fb888c4357f805978a7dbb /indra/newview/llvovolume.cpp | |
parent | 8c79297a8957fec13fadd2a2932b4b03b148d5a5 (diff) |
Make sure to check if we're a hero probe before attempting to register with the hero probe manager. If we're already in the list, this will return false.
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index 149abaf573..d7af7a42d1 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -4416,7 +4416,9 @@ void LLVOVolume::updateReflectionProbePtr() { // Geenz: This is a special case - what we want here is a hero probe. // What we want to do here is instantiate a hero probe from the hero probe manager. - mIsHeroProbe = gPipeline.mHeroProbeManager.registerViewerObject(this); + + if (!mIsHeroProbe) + mIsHeroProbe = gPipeline.mHeroProbeManager.registerViewerObject(this); } } else if (mReflectionProbe.notNull() || getReflectionProbeIsMirror()) |