From 06b6238d007123d23f394f38b44f0aced997269e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 23 Aug 2014 22:24:28 +0100 Subject: send avatar kills after attachments, send otherattachments before rest of sog ( updates will mess this again but well... ) --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 4632402..f0ea0ba 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -3521,7 +3521,7 @@ namespace OpenSim.Region.Framework.Scenes EntityBase[] entities = Scene.Entities.GetEntities(); foreach (EntityBase e in entities) { - if (e != null && e is SceneObjectGroup) + if (e != null && e is SceneObjectGroup && !((SceneObjectGroup)e).IsAttachment) ((SceneObjectGroup)e).SendFullUpdateToClient(ControllingClient); } }); @@ -3596,7 +3596,7 @@ namespace OpenSim.Region.Framework.Scenes p.SendAvatarDataToAgentNF(this); p.SendAppearanceToAgentNF(this); p.SendAnimPackToAgentNF(this); - // for now attachments are sent with all SOG + p.SendAttachmentsToAgentNF(this); count++; }); @@ -5969,9 +5969,10 @@ namespace OpenSim.Region.Framework.Scenes public void SendKillTo(ScenePresence p) { List ids = new List(m_attachments.Count + 1); - ids.Add(LocalId); foreach (SceneObjectGroup sog in m_attachments) ids.Add(sog.RootPart.LocalId); + + ids.Add(LocalId); p.ControllingClient.SendKillObject(ids); } -- cgit v1.1