mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user