Thank you kindly, CMickeyb for a patch that:

Moved intialization of appearance from the SendInitialData 
event handler into CompleteMovement handler. That ensures 
that m_appearance is initialized before the inventory is 
retrieved (so there is a place to check on attachments).
This commit is contained in:
Charles Krinke
2008-09-14 02:56:51 +00:00
parent e946b40fdd
commit 1d5e870ee2
2 changed files with 14 additions and 3 deletions

View File

@@ -722,6 +722,12 @@ namespace OpenSim.Data.MySQL
reader.Dispose();
result.Dispose();
if (null == appearance)
{
m_log.WarnFormat("[USER DB] No appearance found for user {0}", user.ToString());
return null;
}
appearance.SetAttachments(GetUserAttachments(user));
return appearance;