Skip to content
Snippets Groups Projects
Commit f607887b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Misc tweak to avatar icon control

parent 82d7366f
No related branches found
No related tags found
No related merge requests found
...@@ -278,7 +278,8 @@ bool LLAvatarIconCtrl::updateFromCache() ...@@ -278,7 +278,8 @@ bool LLAvatarIconCtrl::updateFromCache()
const LLUUID& icon_id = *icon_id_ptr; const LLUUID& icon_id = *icon_id_ptr;
// Update the avatar // Update the avatar
if (icon_id.notNull()) static LLCachedControl<bool> UseDefaultImage(gSavedSettings, "AlchemyUseDefaultAvatarIcon", false);
if (icon_id.notNull() && !UseDefaultImage)
{ {
LLIconCtrl::setValue(icon_id); LLIconCtrl::setValue(icon_id);
} }
...@@ -304,6 +305,10 @@ void LLAvatarIconCtrl::processProperties(void* data, EAvatarProcessorType type) ...@@ -304,6 +305,10 @@ void LLAvatarIconCtrl::processProperties(void* data, EAvatarProcessorType type)
return; return;
} }
// [SL:KB] - Patch: Control-AvatarIconCtrl | Checked: 2014-02-20 (Catznip-3.7)
LLAvatarPropertiesProcessor::getInstance()->removeObserver(mAvatarId, this);
// [/SL:KB]
LLAvatarIconIDCache::getInstance()->add(mAvatarId,avatar_data->image_id); LLAvatarIconIDCache::getInstance()->add(mAvatarId,avatar_data->image_id);
updateFromCache(); updateFromCache();
} }
......
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