summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Linden <46733234+brad-linden@users.noreply.github.com>2024-07-01 14:32:14 -0700
committerGitHub <noreply@github.com>2024-07-01 14:32:14 -0700
commit817a1321dbe2564c5564f16d0ca66e8b08c5e502 (patch)
treea3b1c73dfcd460ecf5f33ab852e1fe70b3795f73
parent2ea5ac0c43e3e28d2b1774f5367d099271a1da32 (diff)
parentfcc7d161083547e53b2210e20e850794b8faf4c8 (diff)
Merge pull request #1899 from beqjanus/fix-mirror-crashes
Fix for various TP where a mirror is present
-rw-r--r--indra/newview/llheroprobemanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llheroprobemanager.cpp b/indra/newview/llheroprobemanager.cpp
index 66ccdd2b32..cbe1105024 100644
--- a/indra/newview/llheroprobemanager.cpp
+++ b/indra/newview/llheroprobemanager.cpp
@@ -121,6 +121,7 @@ void LLHeroProbeManager::update()
// Find our nearest hero candidate.
float last_distance = 99999.f;
float camera_center_distance = 99999.f;
+ mNearestHero = nullptr;
for (auto vo : mHeroVOList)
{
if (vo && !vo->isDead() && vo->mDrawable.notNull() && vo->isReflectionProbe() && vo->getReflectionProbeIsBox())
@@ -194,11 +195,17 @@ void LLHeroProbeManager::update()
else
{
mNearestHero = nullptr;
+ mDefaultProbe->mViewerObject = nullptr;
}
mHeroProbeStrength = 1;
}
+ else
+ {
+ mNearestHero = nullptr;
+ mDefaultProbe->mViewerObject = nullptr;
}
+}
void LLHeroProbeManager::renderProbes()
{