SH-900 Fix for only lowest LoD appearing for objects in neighboring regions.
parent
9e966bfe9f
commit
bb113f75ef
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue