From ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sun, 3 Jan 2010 07:03:14 -0800 Subject: Applied fix for avatar connectors similar to yesterday's fix of user account connectors. --- OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'OpenSim/Server') diff --git a/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs b/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs index c781cce..49c2e43 100644 --- a/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs +++ b/OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs @@ -138,12 +138,9 @@ namespace OpenSim.Server.Handlers.Avatar if (!UUID.TryParse(request["UserID"].ToString(), out user)) return FailureResult(); - if (request.ContainsKey("Avatar") && request["Avatar"] is Dictionary) - { - AvatarData avatar = new AvatarData((Dictionary)request["Avatar"]); - if (m_AvatarService.SetAvatar(user, avatar)) - return SuccessResult(); - } + AvatarData avatar = new AvatarData(request); + if (m_AvatarService.SetAvatar(user, avatar)) + return SuccessResult(); return FailureResult(); } -- cgit v1.1