MAINT-2949 : Objects across the sim border do not render when approached. Added

missing code block from previous change as per Dave P's advice
meow-7.2.2
simon 2013-08-01 11:38:17 -07:00
parent 6db14e3988
commit 440e576f86
1 changed files with 8 additions and 1 deletions

View File

@ -842,6 +842,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);
@ -851,7 +859,6 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
t.setSub(newMax,newMin);
mBoundingSphereRadius = t.getLength3().getF32()*0.5f;
updateCenterAgent();
}