diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-07-12 15:24:56 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-07-12 15:24:56 -0700 |
commit | 6412fba748347e233ac3062a245fddf365f6bafc (patch) | |
tree | d717cfbeebe96e573bd2e602c00d7a0ac2af3a84 | |
parent | eb00239a0b6b3177acd61a7261251cc2fdd5cb86 (diff) |
Better optimization for loading avatar names that are already cached.
-rw-r--r-- | indra/newview/llpathfindingobject.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpathfindingobject.cpp b/indra/newview/llpathfindingobject.cpp index c2f509c951..0ca0f177a2 100644 --- a/indra/newview/llpathfindingobject.cpp +++ b/indra/newview/llpathfindingobject.cpp @@ -135,7 +135,11 @@ void LLPathfindingObject::fetchOwnerName() mHasOwnerName = false; if (hasOwner()) { - LLAvatarNameCache::get(mOwnerUUID, boost::bind(&LLPathfindingObject::handleAvatarNameFetch, this, _1, _2)); + mHasOwnerName = LLAvatarNameCache::get(mOwnerUUID, &mOwnerName); + if (!mHasOwnerName) + { + LLAvatarNameCache::get(mOwnerUUID, boost::bind(&LLPathfindingObject::handleAvatarNameFetch, this, _1, _2)); + } } } |