From c95fd60806d28c7e68b8a03d9a0e2d41604ac92c Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Fri, 22 Aug 2014 00:28:05 +0100 Subject: revert the kills, they seem even worse --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index d3ed228..5bfc640 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -5848,18 +5848,13 @@ namespace OpenSim.Region.Framework.Scenes public void HasMovedAway() { - List myids = new List(); - foreach (SceneObjectGroup sog in m_attachments) - myids.Add(sog.RootPart.LocalId); - myids.Add(LocalId); - List allpresences = m_scene.GetScenePresences(); foreach (ScenePresence p in allpresences) { if (p == this) continue; - p.ControllingClient.SendKillObject(myids); - p.SendFullKillsTo(this); + SendKillTo(p); + p.SendKillTo(this); } if (Scene.AttachmentsModule != null) Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true); @@ -5869,7 +5864,7 @@ namespace OpenSim.Region.Framework.Scenes { List ids = new List(); foreach (SceneObjectGroup sog in m_attachments) - ids.Add(sog.RootPart.LocalId); + p.ControllingClient.SendPartFullUpdate(sog.RootPart, LocalId + 1); ids.Add(LocalId); p.ControllingClient.SendKillObject(ids); } -- cgit v1.1