Allow creation of user appearance from a model avatar. Thank you,

Cinder, for this patch.

Signed-off-by: Melanie Thielker <melanie@t-data.com>
This commit is contained in:
Melanie Thielker
2016-08-20 22:41:53 +01:00
parent c17e337eca
commit 82244cca68
2 changed files with 215 additions and 4 deletions

View File

@@ -328,12 +328,16 @@ namespace OpenSim.Server.Handlers.UserAccounts
if (request.ContainsKey("Email"))
email = request["Email"].ToString();
string model = "";
if (request.ContainsKey("Model"))
model = request["Model"].ToString();
UserAccount createdUserAccount = null;
if (m_UserAccountService is UserAccountService)
createdUserAccount
= ((UserAccountService)m_UserAccountService).CreateUser(
scopeID, principalID, firstName, lastName, password, email);
scopeID, principalID, firstName, lastName, password, email, model);
if (createdUserAccount == null)
return FailureResult();
@@ -393,4 +397,4 @@ namespace OpenSim.Server.Handlers.UserAccounts
return Util.UTF8NoBomEncoding.GetBytes(xmlString);
}
}
}
}