diff options
author | Diva Canto | 2010-01-03 07:03:14 -0800 |
---|---|---|
committer | Diva Canto | 2010-01-03 07:03:14 -0800 |
commit | ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400 (patch) | |
tree | 25e1864ccee876daa6461672252b74ad9a78277f /OpenSim/Server | |
parent | Test client for remote user account connector and service. It seems to be wor... (diff) | |
download | opensim-SC-ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400.zip opensim-SC-ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400.tar.gz opensim-SC-ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400.tar.bz2 opensim-SC-ae1bdaa7b5f4bf485a52c2fcd81be2e1cd8d0400.tar.xz |
Applied fix for avatar connectors similar to yesterday's fix of user account connectors.
Diffstat (limited to 'OpenSim/Server')
-rw-r--r-- | OpenSim/Server/Handlers/Avatar/AvatarServerPostHandler.cs | 9 |
1 files changed, 3 insertions, 6 deletions
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 | |||
138 | if (!UUID.TryParse(request["UserID"].ToString(), out user)) | 138 | if (!UUID.TryParse(request["UserID"].ToString(), out user)) |
139 | return FailureResult(); | 139 | return FailureResult(); |
140 | 140 | ||
141 | if (request.ContainsKey("Avatar") && request["Avatar"] is Dictionary<string, object>) | 141 | AvatarData avatar = new AvatarData(request); |
142 | { | 142 | if (m_AvatarService.SetAvatar(user, avatar)) |
143 | AvatarData avatar = new AvatarData((Dictionary<string, object>)request["Avatar"]); | 143 | return SuccessResult(); |
144 | if (m_AvatarService.SetAvatar(user, avatar)) | ||
145 | return SuccessResult(); | ||
146 | } | ||
147 | 144 | ||
148 | return FailureResult(); | 145 | return FailureResult(); |
149 | } | 146 | } |