attempt to fix mysql mapper usage

0.6.0-stable
Sean Dague 2008-05-20 22:37:18 +00:00
parent 70ada9181d
commit e3efe1de16
1 changed files with 7 additions and 1 deletions

View File

@ -284,7 +284,12 @@ namespace OpenSim.Region.Modules.AvatarFactory
IClientAPI clientView = (IClientAPI)sender; IClientAPI clientView = (IClientAPI)sender;
ScenePresence avatar = m_scene.GetScenePresence(clientView.AgentId); ScenePresence avatar = m_scene.GetScenePresence(clientView.AgentId);
CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(clientView.AgentId); CachedUserInfo profile = m_scene.CommsManager.UserProfileCacheService.GetUserDetails(clientView.AgentId);
AvatarAppearance avatAppearance = avatar.Appearance;
AvatarAppearance avatAppearance = null;
if(!TryGetAvatarAppearance(clientView.AgentId, out avatAppearance)) {
m_log.Info("We didn't seem to find the appearance");
avatAppearance = avatar.Appearance;
}
m_log.Info("Calling Avatar is Wearing"); m_log.Info("Calling Avatar is Wearing");
if (profile != null) if (profile != null)
{ {
@ -319,6 +324,7 @@ namespace OpenSim.Region.Modules.AvatarFactory
} }
} }
m_scene.CommsManager.UserService.UpdateUserAppearance(clientView.AgentId, avatAppearance); m_scene.CommsManager.UserService.UpdateUserAppearance(clientView.AgentId, avatAppearance);
avatar.Appearance = avatAppearance;
} }
else else
{ {