summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorsimon <none@none>2013-08-05 14:55:12 -0700
committersimon <none@none>2013-08-05 14:55:12 -0700
commit237dbb26f3c54157a4240b539e40c92f98b9f75f (patch)
tree20b633d545e61cd8bd110d2296f3e68d7d564862 /indra/newview/llface.cpp
parentd5aa619146d84c17a3e59432b1608d33bd4b64aa (diff)
parent71e2efab169af5d56f8c5416874d2f7c491f01f1 (diff)
Merge downstream code - Vivox update
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-xindra/newview/llface.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp
index 4904da728a..4944de6030 100755
--- a/indra/newview/llface.cpp
+++ b/indra/newview/llface.cpp
@@ -898,6 +898,14 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
llassert(less_than_max_mag(newMax));
}
+ if (!mDrawablep->isActive())
+ { // Shift position for region
+ LLVector4a offset;
+ offset.load3(mDrawablep->getRegion()->getOriginAgent().mV);
+ newMin.add(offset);
+ newMax.add(offset);
+ }
+
t.setAdd(newMin, newMax);
t.mul(0.5f);