diff options
author | simon <none@none> | 2013-08-05 14:55:12 -0700 |
---|---|---|
committer | simon <none@none> | 2013-08-05 14:55:12 -0700 |
commit | 237dbb26f3c54157a4240b539e40c92f98b9f75f (patch) | |
tree | 20b633d545e61cd8bd110d2296f3e68d7d564862 /indra/newview/llface.cpp | |
parent | d5aa619146d84c17a3e59432b1608d33bd4b64aa (diff) | |
parent | 71e2efab169af5d56f8c5416874d2f7c491f01f1 (diff) |
Merge downstream code - Vivox update
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-x | indra/newview/llface.cpp | 8 |
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); |