mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
This commit fixes all the appearance related null refs. Still can't log in,
client displays a blank error box.
This commit is contained in:
@@ -51,8 +51,6 @@ namespace OpenSim.Services.AvatarService
|
||||
m_log.Debug("[AVATAR SERVICE]: Starting avatar service");
|
||||
}
|
||||
|
||||
// Get|SetAppearance should preserve existing semantics
|
||||
// until AvatarData can be removed completely
|
||||
public AvatarAppearance GetAppearance(UUID principalID)
|
||||
{
|
||||
AvatarData avatar = GetAvatar(principalID);
|
||||
@@ -68,12 +66,15 @@ namespace OpenSim.Services.AvatarService
|
||||
public AvatarData GetAvatar(UUID principalID)
|
||||
{
|
||||
AvatarBaseData[] av = m_Database.Get("PrincipalID", principalID.ToString());
|
||||
if (av.Length == 0)
|
||||
return null;
|
||||
|
||||
AvatarData ret = new AvatarData();
|
||||
ret.Data = new Dictionary<string,string>();
|
||||
|
||||
if (av.Length == 0)
|
||||
{
|
||||
ret.AvatarType = 1; // SL avatar
|
||||
return ret;
|
||||
}
|
||||
|
||||
foreach (AvatarBaseData b in av)
|
||||
{
|
||||
if (b.Data["Name"] == "AvatarType")
|
||||
|
||||
Reference in New Issue
Block a user