Skip to content
Snippets Groups Projects
Commit 6412fba7 authored by Todd Stinson's avatar Todd Stinson
Browse files

Better optimization for loading avatar names that are already cached.

parent eb00239a
No related branches found
No related tags found
No related merge requests found
......@@ -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));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment