diff options
| author | Tofu Buzzard <no-email> | 2011-02-02 17:42:00 -0800 |
|---|---|---|
| committer | Tofu Buzzard <no-email> | 2011-02-02 17:42:00 -0800 |
| commit | 46c9f61abdd9326c7a52159370b20800941c72fa (patch) | |
| tree | 9523a793df8bf78104453d5bd4d4d85585cc1018 /indra/newview/lldrawable.cpp | |
| parent | e0dd36df5f468a8c6949760e217578852553de21 (diff) | |
| parent | 5bd5d918caa63338a678e2c94db9195f77867e8a (diff) | |
merge
Diffstat (limited to 'indra/newview/lldrawable.cpp')
| -rw-r--r-- | indra/newview/lldrawable.cpp | 8 |
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 { |
