1. simon_linden
  2. viewer-rabbit

Commits

Stinson Linden  committed 8755d7d

Better optimization for loading avatar names that are already cached.

  • Participants
  • Parent commits e5dcb8f
  • Branches default

Comments (0)

Files changed (1)

File indra/newview/llpathfindingobject.cpp

View file
  • Ignore whitespace
 	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));
+		}
 	}
 }