* Stop (which currently removes) all scripts in an object when that object is deleted from the region
parent
78e24380c8
commit
f77ab46184
|
@ -1818,8 +1818,19 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Delete all the parts in this group.
|
||||
/// </summary>
|
||||
public void DeleteParts()
|
||||
{
|
||||
lock (m_parts)
|
||||
{
|
||||
foreach (SceneObjectPart part in m_parts.Values)
|
||||
{
|
||||
part.StopScripts();
|
||||
}
|
||||
}
|
||||
|
||||
m_rootPart = null;
|
||||
m_parts.Clear();
|
||||
}
|
||||
|
|
|
@ -126,6 +126,9 @@ namespace OpenSim.Region.Environment.Scenes
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Stop all the scripts in this prim.
|
||||
/// </summary>
|
||||
public void StopScripts()
|
||||
{
|
||||
lock (m_taskInventory)
|
||||
|
|
Loading…
Reference in New Issue