summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvovolume.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index f97e0ff2e7..afccc1c42c 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -3277,20 +3277,17 @@ void LLVOVolume::updateSpotLightPriority()
{
F32 r = getLightRadius();
LLVector3 pos = mDrawable->getPositionAgent();
- LLVector3 agent_pos = gAgent.getPositionAgent();
LLVector3 at(0,0,-1);
-
at *= getRenderRotation();
pos += at * r;
at = LLViewerCamera::getInstance()->getAtAxis();
-
pos -= at * r;
mSpotLightPriority = gPipeline.calcPixelArea(pos, LLVector3(r,r,r), *LLViewerCamera::getInstance());
- //mSpotLightPriority = (agent_pos - pos).length() + r;
+ //mSpotLightPriority = (gAgent.getPositionAgent() - pos).length() + r;
if (mLightTexture.notNull())
{