mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
* refactor: rename SendKiPrimitive to SendKillObject since this appears more descriptive of what it actually does
This commit is contained in:
@@ -260,7 +260,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
|
||||
// I thought that the DeleteGroup() function would handle all of this, but it doesn't. I'm not sure WHAT it handles.
|
||||
((SceneObjectGroup)scene.Entities[uuid]).DetachFromBackup();
|
||||
scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor);
|
||||
scene.SendKiPrimitive(scene.Entities[uuid].LocalId);
|
||||
scene.SendKillObject(scene.Entities[uuid].LocalId);
|
||||
scene.m_innerScene.DeleteSceneObject(uuid, false);
|
||||
((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup();
|
||||
}
|
||||
|
||||
@@ -189,7 +189,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
|
||||
//This is important because we are not IN any database.
|
||||
//m_Entity.FakeDeleteGroup();
|
||||
foreach (SceneObjectPart part in m_Entity.Children.Values)
|
||||
client.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId);
|
||||
client.SendKillObject(m_Entity.RegionHandle, part.LocalId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -199,7 +199,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
|
||||
{
|
||||
foreach (SceneObjectPart part in m_Entity.Children.Values)
|
||||
m_Entity.Scene.ClientManager.ForEachClient(delegate(IClientAPI controller)
|
||||
{ controller.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId); }
|
||||
{ controller.SendKillObject(m_Entity.RegionHandle, part.LocalId); }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -443,7 +443,7 @@ namespace OpenSim.Region.Environment.Modules.World.NPC
|
||||
|
||||
}
|
||||
|
||||
public virtual void SendKiPrimitive(ulong regionHandle, uint localID)
|
||||
public virtual void SendKillObject(ulong regionHandle, uint localID)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace OpenSim.Region.Environment.Modules.World.TreePopulator
|
||||
|
||||
m_scene.ForEachClient(delegate(IClientAPI controller)
|
||||
{
|
||||
controller.SendKiPrimitive(m_scene.RegionInfo.RegionHandle,
|
||||
controller.SendKillObject(m_scene.RegionInfo.RegionHandle,
|
||||
selectedTree.LocalId);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user