mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
back to sending attachment sog kills in place of the hack. This is the
official way of doing it
This commit is contained in:
@@ -5965,22 +5965,25 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
Scene.AttachmentsModule.DeleteAttachmentsFromScene(this, true);
|
||||
}
|
||||
|
||||
public void SendFullKillsTo(ScenePresence p)
|
||||
// kill with attachs root kills
|
||||
public void SendKillTo(ScenePresence p)
|
||||
{
|
||||
List<uint> ids = new List<uint>();
|
||||
foreach (SceneObjectGroup sog in m_attachments)
|
||||
p.ControllingClient.SendPartFullUpdate(sog.RootPart, LocalId + 1);
|
||||
List<uint> ids = new List<uint>(m_attachments.Count + 1);
|
||||
ids.Add(LocalId);
|
||||
foreach (SceneObjectGroup sog in m_attachments)
|
||||
ids.Add(sog.RootPart.LocalId);
|
||||
p.ControllingClient.SendKillObject(ids);
|
||||
}
|
||||
|
||||
/*
|
||||
// kill with hack
|
||||
public void SendKillTo(ScenePresence p)
|
||||
{
|
||||
foreach (SceneObjectGroup sog in m_attachments)
|
||||
p.ControllingClient.SendPartFullUpdate(sog.RootPart, LocalId + 1);
|
||||
p.ControllingClient.SendKillObject(new List<uint> { LocalId });
|
||||
}
|
||||
|
||||
*/
|
||||
public void SendViewTo(ScenePresence p)
|
||||
{
|
||||
SendAvatarDataToAgentNF(p);
|
||||
|
||||
Reference in New Issue
Block a user