Sanity fix: Only request avatar properties in radar if it's not a null UUID

meow-7.2.2
Ansariel 2013-07-07 23:19:55 +02:00
parent 69f09eae8d
commit 82b9aff6fc
1 changed files with 9 additions and 5 deletions

View File

@ -51,11 +51,15 @@ FSRadarEntry::FSRadarEntry(const LLUUID& avid)
mIsLinden(false),
mAvatarNameCallbackConnection()
{
// NOTE: typically we request these once on creation to avoid excess traffic/processing.
//This means updates to these properties won't typically be seen while target is in nearby range.
LLAvatarPropertiesProcessor* processor = LLAvatarPropertiesProcessor::getInstance();
processor->addObserver(mID, this);
processor->sendAvatarPropertiesRequest(mID);
if (mID.notNull())
{
// NOTE: typically we request these once on creation to avoid excess traffic/processing.
//This means updates to these properties won't typically be seen while target is in nearby range.
LLAvatarPropertiesProcessor* processor = LLAvatarPropertiesProcessor::getInstance();
processor->addObserver(mID, this);
processor->sendAvatarPropertiesRequest(mID);
}
updateName();
}