summaryrefslogtreecommitdiff
path: root/indra/newview/lldrawable.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2011-02-02 19:01:27 -0600
committerDave Parks <davep@lindenlab.com>2011-02-02 19:01:27 -0600
commitbb113f75efefffc1f976267be6d722289929e596 (patch)
treea7e480edc072f73ed7f25a2f370592e3c750347a /indra/newview/lldrawable.cpp
parent9e966bfe9fd15f9ffbc969fc41ef2306e9f9409c (diff)
SH-900 Fix for only lowest LoD appearing for objects in neighboring regions.
Diffstat (limited to 'indra/newview/lldrawable.cpp')
-rw-r--r--indra/newview/lldrawable.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp
index 73c4cf94ef..cbee800acb 100644
--- a/indra/newview/lldrawable.cpp
+++ b/indra/newview/lldrawable.cpp
@@ -709,11 +709,7 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
if (volume)
{
pos.set(getPositionGroup().getF32ptr());
- if (isStatic())
- {
- pos += volume->getRegion()->getOriginAgent();
- }
-
+
if (isState(LLDrawable::HAS_ALPHA))
{
for (S32 i = 0; i < getNumFaces(); i++)
@@ -733,7 +729,7 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
facep->mDistance = v * camera.getAtAxis();
}
}
- }
+ }
}
else
{