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))
|
if (!UUID.TryParse(request["UserID"].ToString(), out user))
|
||||||
return FailureResult();
|
return FailureResult();
|
||||||
|
|
||||||
if (request.ContainsKey("Avatar") && request["Avatar"] is Dictionary<string, object>)
|
AvatarData avatar = new AvatarData(request);
|
||||||
{
|
|
||||||
AvatarData avatar = new AvatarData((Dictionary<string, object>)request["Avatar"]);
|
|
||||||
if (m_AvatarService.SetAvatar(user, avatar))
|
if (m_AvatarService.SetAvatar(user, avatar))
|
||||||
return SuccessResult();
|
return SuccessResult();
|
||||||
}
|
|
||||||
|
|
||||||
return FailureResult();
|
return FailureResult();
|
||||||
}
|
}
|
||||||
|
|
|
@ -140,7 +140,12 @@ namespace OpenSim.Services.Connectors
|
||||||
sendData["METHOD"] = "setavatar";
|
sendData["METHOD"] = "setavatar";
|
||||||
|
|
||||||
sendData["UserID"] = userID.ToString();
|
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);
|
string reqString = ServerUtils.BuildQueryString(sendData);
|
||||||
// m_log.DebugFormat("[AVATAR CONNECTOR]: queryString = {0}", reqString);
|
// m_log.DebugFormat("[AVATAR CONNECTOR]: queryString = {0}", reqString);
|
||||||
|
|
Loading…
Reference in New Issue