Bug fix: if user doesn't have an avatar in storage, create one upon first login.

slimupdates
Diva Canto 2010-01-13 10:20:02 -08:00
parent d939668d6a
commit e09c9fbe14
1 changed files with 3 additions and 0 deletions

View File

@ -376,6 +376,9 @@ namespace OpenSim.Services.LLLoginService
aCircuit.AgentID = account.PrincipalID;
if (avatar != null)
aCircuit.Appearance = avatar.ToAvatarAppearance(account.PrincipalID);
else
aCircuit.Appearance = new AvatarAppearance(account.PrincipalID);
//aCircuit.BaseFolder = irrelevant
aCircuit.CapsPath = CapsUtil.GetRandomCapsObjectPath();
aCircuit.child = false; // the first login agent is root