Applied fix for avatar connectors similar to yesterday's fix of user account connectors.
parent
8bed461957
commit
ae1bdaa7b5
|
@ -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<string, object>)
|
||||
{
|
||||
AvatarData avatar = new AvatarData((Dictionary<string, object>)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();
|
||||
}
|
||||
|
|
|
@ -140,7 +140,12 @@ namespace OpenSim.Services.Connectors
|
|||
sendData["METHOD"] = "setavatar";
|
||||
|
||||
sendData["UserID"] = userID.ToString();
|
||||
sendData["Avatar"] = avatar.ToKeyValuePairs();
|
||||
|
||||
Dictionary<string, object> structData = avatar.ToKeyValuePairs();
|
||||
|
||||
foreach (KeyValuePair<string, object> kvp in structData)
|
||||
sendData[kvp.Key] = kvp.Value.ToString();
|
||||
|
||||
|
||||
string reqString = ServerUtils.BuildQueryString(sendData);
|
||||
// m_log.DebugFormat("[AVATAR CONNECTOR]: queryString = {0}", reqString);
|
||||
|
|
Loading…
Reference in New Issue