From 450ae4a927e15879b35e615908d6ba63dd5beefe Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 28 Aug 2019 04:36:17 +0100 Subject: [PATCH] change appearance data sent to others --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index f569d21af5..6e662344c7 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4358,8 +4358,16 @@ namespace OpenSim.Region.Framework.Scenes public void SendAppearanceToAgentNF(ScenePresence avatar) { - avatar.ControllingClient.SendAppearance( - UUID, Appearance.VisualParams, Appearance.Texture.GetBytes()); + if(avatar.UUID == UUID) + { + avatar.ControllingClient.SendAppearance( + UUID, Appearance.VisualParams, Appearance.Texture.GetBytes()); + } + else + { + avatar.ControllingClient.SendAppearance( + UUID, Appearance.VisualParams, Appearance.Texture.GetAvatarPublicBytes()); + } } public void SendAnimPackToAgent(ScenePresence p)