aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorMelanie Thielker2010-04-25 22:03:35 +0200
committerMelanie Thielker2010-04-25 22:03:35 +0200
commit81ff5eaba09e7569ef5359874ffcfc7f8855f0b4 (patch)
treeadbc99c0ac713afe3f8eeac686ab7045fc78f7ca /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parentUse the saved script states (diff)
downloadopensim-SC_OLD-81ff5eaba09e7569ef5359874ffcfc7f8855f0b4.zip
opensim-SC_OLD-81ff5eaba09e7569ef5359874ffcfc7f8855f0b4.tar.gz
opensim-SC_OLD-81ff5eaba09e7569ef5359874ffcfc7f8855f0b4.tar.bz2
opensim-SC_OLD-81ff5eaba09e7569ef5359874ffcfc7f8855f0b4.tar.xz
Make scripted attachment states work. Finally. Also replace two monitor locks
with RWLocks, hunting the 10^3 bug. Not successful, but needed to be done anyway
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 84c3719..1c6f2d1 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1041,6 +1041,11 @@ namespace OpenSim.Region.Framework.Scenes
1041 1041
1042 public void SaveScriptedState(XmlTextWriter writer) 1042 public void SaveScriptedState(XmlTextWriter writer)
1043 { 1043 {
1044 SaveScriptedState(writer, false);
1045 }
1046
1047 public void SaveScriptedState(XmlTextWriter writer, bool oldIDs)
1048 {
1044 XmlDocument doc = new XmlDocument(); 1049 XmlDocument doc = new XmlDocument();
1045 Dictionary<UUID,string> states = new Dictionary<UUID,string>(); 1050 Dictionary<UUID,string> states = new Dictionary<UUID,string>();
1046 1051
@@ -1050,7 +1055,7 @@ namespace OpenSim.Region.Framework.Scenes
1050 foreach (SceneObjectPart part in m_parts.Values) 1055 foreach (SceneObjectPart part in m_parts.Values)
1051 { 1056 {
1052 1057
1053 Dictionary<UUID,string> pstates = part.Inventory.GetScriptStates(); 1058 Dictionary<UUID,string> pstates = part.Inventory.GetScriptStates(oldIDs);
1054 foreach (UUID itemid in pstates.Keys) 1059 foreach (UUID itemid in pstates.Keys)
1055 { 1060 {
1056 states.Add(itemid, pstates[itemid]); 1061 states.Add(itemid, pstates[itemid]);