From 23e78e44765f74cb2a209e0acdac0115f03677d3 Mon Sep 17 00:00:00 2001 From: diva Date: Sat, 21 Feb 2009 17:44:33 +0000 Subject: [PATCH] A small improvement in the UserLoginService, hence the User Server: users are now being given a default appearance if there is none in the user database. This issue affected newly created accounts, which aren't given an appearance at time of creation. May address some of the issues reported in mantis #3204 (but the incompatibility with pre-8447 is unaffected and continues to exist). --- OpenSim/Grid/UserServer/UserLoginService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs index 4878c03005..c180565c0e 100644 --- a/OpenSim/Grid/UserServer/UserLoginService.cs +++ b/OpenSim/Grid/UserServer/UserLoginService.cs @@ -401,10 +401,13 @@ namespace OpenSim.Grid.UserServer if (appearance != null) { loginParams["appearance"] = appearance.ToHashTable(); - m_log.DebugFormat("[LOGIN]: Found appearance for {0}, {1}", user.FirstName, user.SurName); + m_log.DebugFormat("[LOGIN]: Found appearance for {0} {1}", user.FirstName, user.SurName); } else - m_log.DebugFormat("[LOGIN]: Appearance not for {0}, {1}", user.FirstName, user.SurName); + { + m_log.DebugFormat("[LOGIN]: Appearance not for {0} {1}. Creating default.", user.FirstName, user.SurName); + appearance = new AvatarAppearance(); + } ArrayList SendParams = new ArrayList(); SendParams.Add(loginParams);