diff options
author | Melanie | 2010-09-16 18:04:50 +0100 |
---|---|---|
committer | Melanie | 2010-09-16 18:04:50 +0100 |
commit | 58b1ee8e2ca93897415f665bddb5b48966364911 (patch) | |
tree | caa862e2ecbdb2a9c72d85846f2ece1b19c9b8b1 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | Revert last commit (diff) | |
parent | Add the modules include line back that i dropped by mistake (diff) | |
download | opensim-SC_OLD-58b1ee8e2ca93897415f665bddb5b48966364911.zip opensim-SC_OLD-58b1ee8e2ca93897415f665bddb5b48966364911.tar.gz opensim-SC_OLD-58b1ee8e2ca93897415f665bddb5b48966364911.tar.bz2 opensim-SC_OLD-58b1ee8e2ca93897415f665bddb5b48966364911.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 52f6c1a..3411d18 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -29,7 +29,7 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Drawing; | 30 | using System.Drawing; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Diagnostics; | 32 | using System.Linq; |
33 | using System.Threading; | 33 | using System.Threading; |
34 | using System.Xml; | 34 | using System.Xml; |
35 | using System.Xml.Serialization; | 35 | using System.Xml.Serialization; |
@@ -1564,7 +1564,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
1564 | /// must be handled by the caller. | 1564 | /// must be handled by the caller. |
1565 | /// | 1565 | /// |
1566 | /// <param name="silent">If true then deletion is not broadcast to clients</param> | 1566 | /// <param name="silent">If true then deletion is not broadcast to clients</param> |
1567 | public void DeleteGroup(bool silent) | 1567 | public void DeleteGroupFromScene(bool silent) |
1568 | { | 1568 | { |
1569 | // We need to keep track of this state in case this group is still queued for backup. | 1569 | // We need to keep track of this state in case this group is still queued for backup. |
1570 | m_isDeleted = true; | 1570 | m_isDeleted = true; |
@@ -1572,28 +1572,25 @@ namespace OpenSim.Region.Framework.Scenes | |||
1572 | DetachFromBackup(); | 1572 | DetachFromBackup(); |
1573 | 1573 | ||
1574 | lockPartsForRead(true); | 1574 | lockPartsForRead(true); |
1575 | List<SceneObjectPart> values = new List<SceneObjectPart>(m_parts.Values); | 1575 | List<SceneObjectPart> parts = new List<SceneObjectPart>(m_parts.Values); |
1576 | lockPartsForRead(false); | 1576 | lockPartsForRead(false); |
1577 | 1577 | ||
1578 | foreach (SceneObjectPart part in values) | 1578 | foreach (SceneObjectPart part in parts) |
1579 | { | 1579 | { |
1580 | // part.Inventory.RemoveScriptInstances(); | 1580 | Scene.ForEachScenePresence(delegate (ScenePresence avatar) |
1581 | |||
1582 | Scene.ForEachScenePresence(delegate (ScenePresence sp) | ||
1583 | { | 1581 | { |
1584 | if (sp.ParentID == LocalId) | 1582 | if (avatar.ParentID == LocalId) |
1585 | { | 1583 | { |
1586 | sp.StandUp(); | 1584 | avatar.StandUp(); |
1587 | } | 1585 | } |
1588 | 1586 | ||
1589 | if (!silent) | 1587 | if (!silent) |
1590 | { | 1588 | { |
1591 | part.UpdateFlag = 0; | 1589 | part.UpdateFlag = 0; |
1592 | if (part == m_rootPart) | 1590 | if (part == m_rootPart) |
1593 | sp.ControllingClient.SendKillObject(m_regionHandle, part.LocalId); | 1591 | avatar.ControllingClient.SendKillObject(m_regionHandle, part.LocalId); |
1594 | } | 1592 | } |
1595 | }); | 1593 | }); |
1596 | |||
1597 | } | 1594 | } |
1598 | 1595 | ||
1599 | 1596 | ||