more fixes to default avatar appearance creation
parent
1b7d0a6c93
commit
8039946c76
|
@ -162,6 +162,10 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
|
|
||||||
public void PostInitialise()
|
public void PostInitialise()
|
||||||
{
|
{
|
||||||
|
if (!createDefaultAvatars())
|
||||||
|
{
|
||||||
|
m_log.Info("[RADMIN]: Default avatars not loaded");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request)
|
public XmlRpcResponse XmlRpcRestartMethod(XmlRpcRequest request)
|
||||||
|
@ -904,8 +908,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
firstname, lastname));
|
firstname, lastname));
|
||||||
|
|
||||||
// Establish the avatar's initial appearance
|
// Establish the avatar's initial appearance
|
||||||
// TODO: need to add code to do this only when requested
|
|
||||||
// updateUserAppearance(responseData, requestData, userID);
|
updateUserAppearance(responseData, requestData, userID);
|
||||||
|
|
||||||
responseData["success"] = true;
|
responseData["success"] = true;
|
||||||
responseData["avatar_uuid"] = userID.ToString();
|
responseData["avatar_uuid"] = userID.ToString();
|
||||||
|
@ -1131,13 +1135,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
if (String.Empty != aboutAvatar) userProfile.AboutText = aboutAvatar;
|
if (String.Empty != aboutAvatar) userProfile.AboutText = aboutAvatar;
|
||||||
|
|
||||||
// User has been created. Now establish gender and appearance.
|
// User has been created. Now establish gender and appearance.
|
||||||
// Default appearance is 'Default Male'. Specifying gender can
|
|
||||||
// establish "Default Female". Specifying a specific model can
|
|
||||||
// establish a specific appearance without regard for gender.
|
|
||||||
|
|
||||||
// TODO: need to add code to do this only when
|
|
||||||
// requested
|
|
||||||
if (requestData.ContainsKey("model"))
|
|
||||||
updateUserAppearance(responseData, requestData, userProfile.ID);
|
updateUserAppearance(responseData, requestData, userProfile.ID);
|
||||||
|
|
||||||
if (!m_app.CommunicationsManager.UserService.UpdateUserProfile(userProfile))
|
if (!m_app.CommunicationsManager.UserService.UpdateUserProfile(userProfile))
|
||||||
|
@ -1165,6 +1163,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
|
|
||||||
m_log.Info("[RADMIN]: UpdateUserAccount: request complete");
|
m_log.Info("[RADMIN]: UpdateUserAccount: request complete");
|
||||||
return response;
|
return response;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1207,12 +1206,17 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
// Has an explicit model been specified?
|
// Has an explicit model been specified?
|
||||||
|
|
||||||
if (requestData.Contains("model"))
|
if (requestData.Contains("model"))
|
||||||
|
{
|
||||||
model = (string)requestData["model"];
|
model = (string)requestData["model"];
|
||||||
|
}
|
||||||
|
|
||||||
// No appearance attributes were set
|
// No appearance attributes were set
|
||||||
|
|
||||||
if (model == String.Empty)
|
if(model == String.Empty)
|
||||||
|
{
|
||||||
|
m_log.DebugFormat("[RADMIN] Appearance update not requested");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
m_log.DebugFormat("[RADMIN] Setting appearance for avatar {0}, using model {1}", userid, model);
|
m_log.DebugFormat("[RADMIN] Setting appearance for avatar {0}, using model {1}", userid, model);
|
||||||
|
|
||||||
|
@ -1379,8 +1383,6 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
private bool createDefaultAvatars()
|
private bool createDefaultAvatars()
|
||||||
{
|
{
|
||||||
|
|
||||||
m_log.DebugFormat("[RADMIN] Creating default avatar entries");
|
|
||||||
|
|
||||||
// Only load once
|
// Only load once
|
||||||
|
|
||||||
if (daload)
|
if (daload)
|
||||||
|
@ -1388,6 +1390,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_log.DebugFormat("[RADMIN] Creating default avatar entries");
|
||||||
|
|
||||||
daload = true;
|
daload = true;
|
||||||
|
|
||||||
// Load processing starts here...
|
// Load processing starts here...
|
||||||
|
|
Loading…
Reference in New Issue