aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie2010-09-21 04:03:40 +0100
committerMelanie2010-09-21 04:03:40 +0100
commit41847e8fdf32994b5bd61699b490b90eb57a19a0 (patch)
treeb14071e3324476c7b736b2d07f47ecfa520d8ee5 /OpenSim
parentMerge branch 'master' into careminster-presence-refactor (diff)
parentFix a typo (diff)
downloadopensim-SC-41847e8fdf32994b5bd61699b490b90eb57a19a0.zip
opensim-SC-41847e8fdf32994b5bd61699b490b90eb57a19a0.tar.gz
opensim-SC-41847e8fdf32994b5bd61699b490b90eb57a19a0.tar.bz2
opensim-SC-41847e8fdf32994b5bd61699b490b90eb57a19a0.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://melanie@3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/TaskInventoryItem.cs8
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs2
2 files changed, 4 insertions, 6 deletions
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs
index df5b936..883f61a 100644
--- a/OpenSim/Framework/TaskInventoryItem.cs
+++ b/OpenSim/Framework/TaskInventoryItem.cs
@@ -120,7 +120,7 @@ namespace OpenSim.Framework
120 private UUID _permsGranter; 120 private UUID _permsGranter;
121 private int _permsMask; 121 private int _permsMask;
122 private int _type = 0; 122 private int _type = 0;
123 private UUID _oldID; 123 private UUID _oldID = UUID.Zero;
124 124
125 private bool _ownerChanged = false; 125 private bool _ownerChanged = false;
126 126
@@ -227,9 +227,6 @@ namespace OpenSim.Framework
227 get { 227 get {
228 return _oldID; 228 return _oldID;
229 } 229 }
230 set {
231 _oldID = value;
232 }
233 } 230 }
234 231
235 public UUID LastOwnerID { 232 public UUID LastOwnerID {
@@ -348,7 +345,8 @@ namespace OpenSim.Framework
348 /// <param name="partID">The new part ID to which this item belongs</param> 345 /// <param name="partID">The new part ID to which this item belongs</param>
349 public void ResetIDs(UUID partID) 346 public void ResetIDs(UUID partID)
350 { 347 {
351 OldItemID = ItemID; 348 if (_oldID == UUID.Zero)
349 _oldID = ItemID;
352 ItemID = UUID.Random(); 350 ItemID = UUID.Random();
353 ParentPartID = partID; 351 ParentPartID = partID;
354 ParentID = partID; 352 ParentID = partID;
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 62245d4..c94a873 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -1033,7 +1033,7 @@ namespace OpenSim.Region.Framework.Scenes
1033 SceneObjectPart[] parts = m_parts.GetArray(); 1033 SceneObjectPart[] parts = m_parts.GetArray();
1034 for (int i = 0; i < parts.Length; i++) 1034 for (int i = 0; i < parts.Length; i++)
1035 { 1035 {
1036 Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(); 1036 Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(oldIDs);
1037 foreach (KeyValuePair<UUID, string> kvp in pstates) 1037 foreach (KeyValuePair<UUID, string> kvp in pstates)
1038 states.Add(kvp.Key, kvp.Value); 1038 states.Add(kvp.Key, kvp.Value);
1039 } 1039 }