diff options
author | simon <none@none> | 2013-08-01 16:19:49 -0700 |
---|---|---|
committer | simon <none@none> | 2013-08-01 16:19:49 -0700 |
commit | ee25146ce4cac282d70b8cc32d58613e31f197f9 (patch) | |
tree | 88d53cd2a7e73f6722cdeac5c6875ebf5ed1dcc4 /indra/newview/llface.cpp | |
parent | 9f60fc46e2454bb5d711ba6d136e2cd47ba2b8eb (diff) | |
parent | 570884d73007aea2438f3faa1181129a16bad359 (diff) |
Merge downstream code
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-x | indra/newview/llface.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index b2e3300ab3..ead013d6c6 100755 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -859,6 +859,14 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f, newMax.setMax(newMax, tv[i]); } + if (!mDrawablep->isActive()) + { // Shift position for region + LLVector4a offset; + offset.load3(mDrawablep->getRegion()->getOriginAgent().mV); + newMin.add(offset); + newMax.add(offset); + } + LLVector4a t; t.setAdd(newMin,newMax); t.mul(0.5f); @@ -868,7 +876,6 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f, t.setSub(newMax,newMin); mBoundingSphereRadius = t.getLength3().getF32()*0.5f; - updateCenterAgent(); } |