change appearance data sent to others

0.9.1.0-post-fixes
UbitUmarov 2019-08-28 04:36:17 +01:00
parent 562ec0eed3
commit 450ae4a927
1 changed files with 10 additions and 2 deletions

View File

@ -4357,10 +4357,18 @@ namespace OpenSim.Region.Framework.Scenes
} }
public void SendAppearanceToAgentNF(ScenePresence avatar) public void SendAppearanceToAgentNF(ScenePresence avatar)
{
if(avatar.UUID == UUID)
{ {
avatar.ControllingClient.SendAppearance( avatar.ControllingClient.SendAppearance(
UUID, Appearance.VisualParams, Appearance.Texture.GetBytes()); UUID, Appearance.VisualParams, Appearance.Texture.GetBytes());
} }
else
{
avatar.ControllingClient.SendAppearance(
UUID, Appearance.VisualParams, Appearance.Texture.GetAvatarPublicBytes());
}
}
public void SendAnimPackToAgent(ScenePresence p) public void SendAnimPackToAgent(ScenePresence p)
{ {