rename SceneObjectGroup.DeleteGroup() to DeleteGroupFromScene() to improve code readability
parent
16f296f489
commit
39d27fc879
|
@ -105,7 +105,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (permissionToDelete)
|
if (permissionToDelete)
|
||||||
{
|
{
|
||||||
foreach (SceneObjectGroup g in objectGroups)
|
foreach (SceneObjectGroup g in objectGroups)
|
||||||
g.DeleteGroup(false);
|
g.DeleteGroupFromScene(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2120,7 +2120,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
EventManager.TriggerParcelPrimCountTainted();
|
EventManager.TriggerParcelPrimCountTainted();
|
||||||
}
|
}
|
||||||
|
|
||||||
group.DeleteGroup(silent);
|
group.DeleteGroupFromScene(silent);
|
||||||
|
|
||||||
// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID);
|
// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1235,7 +1235,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
/// must be handled by the caller.
|
/// must be handled by the caller.
|
||||||
///
|
///
|
||||||
/// <param name="silent">If true then deletion is not broadcast to clients</param>
|
/// <param name="silent">If true then deletion is not broadcast to clients</param>
|
||||||
public void DeleteGroup(bool silent)
|
public void DeleteGroupFromScene(bool silent)
|
||||||
{
|
{
|
||||||
List<SceneObjectPart> parts;
|
List<SceneObjectPart> parts;
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement
|
||||||
scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor);
|
scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor);
|
||||||
scene.SendKillObject(scene.Entities[uuid].LocalId);
|
scene.SendKillObject(scene.Entities[uuid].LocalId);
|
||||||
scene.SceneGraph.DeleteSceneObject(uuid, false);
|
scene.SceneGraph.DeleteSceneObject(uuid, false);
|
||||||
((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup(false);
|
((SceneObjectGroup)scene.Entities[uuid]).DeleteGroupFromScene(false);
|
||||||
}
|
}
|
||||||
catch(Exception e)
|
catch(Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue