summaryrefslogtreecommitdiff
path: root/indra/newview/llheroprobemanager.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@geenzo.com>2023-09-25 19:20:46 -0700
committerJonathan "Geenz" Goodman <geenz@geenzo.com>2023-09-25 19:20:46 -0700
commit18b219cf83a1cd405cf36b9f58fc48f717409598 (patch)
treee50c6ac1ae9a6b8017f4a1333245cb3ab77e35bc /indra/newview/llheroprobemanager.cpp
parentd092f3e1dc1c322a0c3c1e55b9b6e1792d6b0f59 (diff)
Start removing the concept of placement mode - it's either a mirror or not.
DRTVWR-583
Diffstat (limited to 'indra/newview/llheroprobemanager.cpp')
-rw-r--r--indra/newview/llheroprobemanager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llheroprobemanager.cpp b/indra/newview/llheroprobemanager.cpp
index c3d7ce6e76..fe9f669365 100644
--- a/indra/newview/llheroprobemanager.cpp
+++ b/indra/newview/llheroprobemanager.cpp
@@ -110,7 +110,8 @@ void LLHeroProbeManager::update()
{
if (mNearestHero != nullptr && mNearestHero->mDrawable.notNull())
{
- LLVector3 hero_pos = mNearestHero->mDrawable->mXform.getWorldPosition();
+
+ LLVector3 hero_pos = mNearestHero->mDrawable->getFace(mNearestHero->mirrorPlacementMode())->getPositionAgent();
LLVector4a hit_pos;
LLVector3 focus_point;
@@ -119,7 +120,7 @@ void LLHeroProbeManager::update()
LLMatrix4 rotationMatrix;
- rotationMatrix.rotate(angleInRadians, LLVector4(mNearestHero->mDrawable->getFace(0)->getAverageNormal()));
+ rotationMatrix.rotate(angleInRadians, LLVector4(mNearestHero->mDrawable->getFace(mNearestHero->mirrorPlacementMode())->getAverageNormal()));
LLVector3 translatedPoint;
LLVector3 rotatedTranslatedPoint;