summaryrefslogtreecommitdiff
path: root/indra/newview/llface.cpp
diff options
context:
space:
mode:
authorsimon <none@none>2013-08-01 16:19:49 -0700
committersimon <none@none>2013-08-01 16:19:49 -0700
commitee25146ce4cac282d70b8cc32d58613e31f197f9 (patch)
tree88d53cd2a7e73f6722cdeac5c6875ebf5ed1dcc4 /indra/newview/llface.cpp
parent9f60fc46e2454bb5d711ba6d136e2cd47ba2b8eb (diff)
parent570884d73007aea2438f3faa1181129a16bad359 (diff)
Merge downstream code
Diffstat (limited to 'indra/newview/llface.cpp')
-rwxr-xr-xindra/newview/llface.cpp9
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();
}