LLViewerObject::setPosition already calls updateDrawable. Removing extra updateDrawablecalls.

Referring to cam axis byref.
This commit is contained in:
Shyotl
2011-05-04 19:56:55 -05:00
parent 96f400eb4c
commit 5b36f29b76
2 changed files with 8 additions and 8 deletions

View File

@@ -704,8 +704,8 @@ void LLDrawable::updateDistance(LLCamera& camera, bool force_update)
{
LLVector3 box = (facep->mExtents[1] - facep->mExtents[0]) * 0.25f;
LLVector3 v = (facep->mCenterLocal-camera.getOrigin());
LLVector3 at = camera.getAtAxis();
for (U32 j = 0; j < 3; j++)
const LLVector3& at = camera.getAtAxis();
for (U32 j = 0; j < 3; j++)
{
v.mV[j] -= box.mV[j] * at.mV[j];
}