aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework
diff options
context:
space:
mode:
authorMelanie2010-09-16 18:04:50 +0100
committerMelanie2010-09-16 18:04:50 +0100
commit58b1ee8e2ca93897415f665bddb5b48966364911 (patch)
treecaa862e2ecbdb2a9c72d85846f2ece1b19c9b8b1 /OpenSim/Region/Framework
parentRevert last commit (diff)
parentAdd the modules include line back that i dropped by mistake (diff)
downloadopensim-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')
-rw-r--r--OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs19
3 files changed, 10 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs b/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs
index 916148b..64567db 100644
--- a/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs
+++ b/OpenSim/Region/Framework/Scenes/AsyncSceneObjectGroupDeleter.cs
@@ -105,7 +105,7 @@ namespace OpenSim.Region.Framework.Scenes
105 if (permissionToDelete) 105 if (permissionToDelete)
106 { 106 {
107 foreach (SceneObjectGroup g in objectGroups) 107 foreach (SceneObjectGroup g in objectGroups)
108 g.DeleteGroup(false); 108 g.DeleteGroupFromScene(false);
109 } 109 }
110 } 110 }
111 111
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ac2246c..33e3e5d 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -2189,7 +2189,7 @@ namespace OpenSim.Region.Framework.Scenes
2189 EventManager.TriggerParcelPrimCountTainted(); 2189 EventManager.TriggerParcelPrimCountTainted();
2190 } 2190 }
2191 2191
2192 group.DeleteGroup(silent); 2192 group.DeleteGroupFromScene(silent);
2193 2193
2194// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID); 2194// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID);
2195 } 2195 }
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;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Drawing; 30using System.Drawing;
31using System.IO; 31using System.IO;
32using System.Diagnostics; 32using System.Linq;
33using System.Threading; 33using System.Threading;
34using System.Xml; 34using System.Xml;
35using System.Xml.Serialization; 35using 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