From 1e1b2ab221851efc414678b7ea52ef2ca788ce9f Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 10 Jan 2010 10:40:07 -0800 Subject: * OMG! All but one references to UserProfileCacheService have been rerouted! * HG is seriously broken here * Compiles. Untested. --- .../Avatar/AvatarFactory/AvatarFactoryModule.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs') diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs index 35c59aa..884e6a6 100644 --- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs @@ -46,21 +46,16 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory public bool TryGetAvatarAppearance(UUID avatarId, out AvatarAppearance appearance) { - CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(avatarId); + AvatarData avatar = m_scene.AvatarService.GetAvatar(avatarId); //if ((profile != null) && (profile.RootFolder != null)) - if (profile != null) + if (avatar != null) { - appearance = m_scene.CommsManager.AvatarService.GetUserAppearance(avatarId); - if (appearance != null) - { - //SetAppearanceAssets(profile, ref appearance); - //m_log.DebugFormat("[APPEARANCE]: Found : {0}", appearance.ToString()); - return true; - } + appearance = avatar.ToAvatarAppearance(); + return true; } - appearance = CreateDefault(avatarId); m_log.ErrorFormat("[APPEARANCE]: Appearance not found for {0}, creating default", avatarId); + appearance = CreateDefault(avatarId); return false; } -- cgit v1.1