Commits

Stinson Linden committed 8755d7d

Better optimization for loading avatar names that are already cached.

  • Participants
  • Parent commits e5dcb8f

Comments (0)

Files changed (1)

File indra/newview/llpathfindingobject.cpp

 	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));
+		}
 	}
 }