summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorBrad Linden <brad@lindenlab.com>2024-05-14 11:07:13 -0700
committerBrad Linden <brad@lindenlab.com>2024-05-14 11:07:13 -0700
commit31a3423239a1312e430909ad899d60003363541f (patch)
tree93a7cd46544e69543794654b29068a74437af7d1 /indra/newview/llvovolume.cpp
parent193d9d5f767c2bfad1dc5ced4fa630d05ae798ae (diff)
parent1e9e5a7b7629276d509c352699fb5891c2dc6587 (diff)
Merge remote-tracking branch 'origin/release/materials_featurette' into project/gltf_development
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 78df9aa9cf..a4835849eb 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3422,8 +3422,15 @@ bool LLVOVolume::setReflectionProbeIsMirror(bool is_mirror)
{
if (param_block->getIsMirror() != is_mirror)
{
+ LL_INFOS() << "Setting reflection probe mirror to " << is_mirror << LL_ENDL;
param_block->setIsMirror(is_mirror);
parameterChanged(LLNetworkData::PARAMS_REFLECTION_PROBE, true);
+
+ if (!is_mirror)
+ gPipeline.mHeroProbeManager.unregisterViewerObject(this);
+ else
+ gPipeline.mHeroProbeManager.registerViewerObject(this);
+
return true;
}
}