summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-30 12:50:49 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-30 12:50:49 -0700
commit82232de0d2aecfddca2988249e79a73b4d972aa5 (patch)
treef6dfb8a8c2d0ca9ee3a3e3dca37386130ffe1653 /indra/newview/llvovolume.cpp
parent38b6f10717918643c1169a4007dc92cfe36fc4d5 (diff)
parent68dfa1f5501f58d1ca158aeabcc3fd07e8a2e70f (diff)
Merge branch 'DRTVWR-559' of bitbucket.org:lindenlab/viewer into DRTVWR-559
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp27
1 files changed, 8 insertions, 19 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index 0ae13e67cd..4fa9f05c09 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -2161,6 +2161,7 @@ void LLVOVolume::setNumTEs(const U8 num_tes)
return ;
}
+
//virtual
void LLVOVolume::changeTEImage(S32 index, LLViewerTexture* imagep)
{
@@ -3500,6 +3501,11 @@ F32 LLVOVolume::getLightCutoff() const
}
}
+BOOL LLVOVolume::isReflectionProbe() const
+{
+ return getParameterEntryInUse(LLNetworkData::PARAMS_REFLECTION_PROBE);
+}
+
void LLVOVolume::setIsReflectionProbe(BOOL is_probe)
{
BOOL was_probe = isReflectionProbe();
@@ -3570,25 +3576,6 @@ void LLVOVolume::setReflectionProbeIsDynamic(bool is_dynamic)
}
}
-
-BOOL LLVOVolume::isReflectionProbe() const
-{
- // HACK - make this object a Reflection Probe if a certain UUID is detected
- static LLCachedControl<std::string> reflection_probe_id(gSavedSettings, "RenderReflectionProbeTextureHackID", "");
- LLUUID probe_id(reflection_probe_id);
-
- for (U8 i = 0; i < getNumTEs(); ++i)
- {
- if (getTE(i)->getID() == probe_id)
- {
- return true;
- }
- }
- // END HACK
-
- return getParameterEntryInUse(LLNetworkData::PARAMS_REFLECTION_PROBE);
-}
-
F32 LLVOVolume::getReflectionProbeAmbiance() const
{
const LLReflectionProbeParams* param_block = (const LLReflectionProbeParams*)getParameterEntry(LLNetworkData::PARAMS_REFLECTION_PROBE);
@@ -5874,6 +5861,8 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
continue;
}
+ // HACK -- brute force this check every time a drawable gets rebuilt
+ vobj->updateTEMaterialTextures(i);
#if 0
#if LL_RELEASE_WITH_DEBUG_INFO
const LLUUID pbr_id( "49c88210-7238-2a6b-70ac-92d4f35963cf" );