SH-900 Fix for only lowest LoD appearing for objects in neighboring regions.

master
Dave Parks 2011-02-02 19:01:27 -06:00
parent 9e966bfe9f
commit bb113f75ef
2 changed files with 3 additions and 8 deletions

View File

@ -709,11 +709,7 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
if (volume)
{
pos.set(getPositionGroup().getF32ptr());
if (isStatic())
{
pos += volume->getRegion()->getOriginAgent();
}
if (isState(LLDrawable::HAS_ALPHA))
{
for (S32 i = 0; i < getNumFaces(); i++)
@ -733,7 +729,7 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
facep->mDistance = v * camera.getAtAxis();
}
}
}
}
}
else
{

View File

@ -761,8 +761,7 @@ BOOL LLFace::genVolumeBBoxes(const LLVolume &volume, S32 f,
mCenterLocal.set(t.getF32ptr());
t.setSub(newMax,newMin);
t.mul(0.5f);
mBoundingSphereRadius = t.getLength3().getF32();
mBoundingSphereRadius = t.getLength3().getF32()*0.5f;
updateCenterAgent();
}