don't trust appearance assetid, instead do an inventory

lookup any time we get it from the server.  This should
preventent unwearable appearance.
This commit is contained in:
Sean Dague
2008-05-22 20:07:31 +00:00
parent 811cd3e0bf
commit 1c49752a44
3 changed files with 58 additions and 38 deletions

View File

@@ -1801,8 +1801,7 @@ namespace OpenSim.Region.Environment.Scenes
!m_AvatarFactory.TryGetAvatarAppearance(client.AgentId, out appearance))
{
// not found Appearance
m_log.Warn("[AVATAR DEBUGGING]: Couldn't fetch avatar appearance from factory, please report this to the opensim mantis");
appearance = new AvatarAppearance();
m_log.Warn("[APPEARANCE]: Appearance not found, creating default");
}
}

View File

@@ -1466,11 +1466,11 @@ namespace OpenSim.Region.Environment.Scenes
{
m_log.Info("[APPEARANCE] Sending Own Appearance");
ControllingClient.SendWearables(m_appearance.Wearables, m_appearance.Serial++);
ControllingClient.SendAppearance(
m_appearance.Owner,
m_appearance.VisualParams,
m_appearance.Texture.ToBytes()
);
// ControllingClient.SendAppearance(
// m_appearance.Owner,
// m_appearance.VisualParams,
// m_appearance.Texture.ToBytes()
// );
}
/// <summary>