diff options
author | Melanie | 2012-02-02 01:05:14 +0100 |
---|---|---|
committer | Melanie | 2012-02-02 01:05:14 +0100 |
commit | 45ad9e39a668fc283b392746572729659fb9539d (patch) | |
tree | 1a2e8fcddbc9fe7d73a3ba400aeec2c7a3533b9e /OpenSim/Framework | |
parent | Re-Add the reading of attachment data hat was lost in the merge (diff) | |
download | opensim-SC_OLD-45ad9e39a668fc283b392746572729659fb9539d.zip opensim-SC_OLD-45ad9e39a668fc283b392746572729659fb9539d.tar.gz opensim-SC_OLD-45ad9e39a668fc283b392746572729659fb9539d.tar.bz2 opensim-SC_OLD-45ad9e39a668fc283b392746572729659fb9539d.tar.xz |
Improve reliability of script state saving by covering various saving
and loading scenarios which resulted in loss of continuity on item ids
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/TaskInventoryItem.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs index fa514f0..5d8b8be 100644 --- a/OpenSim/Framework/TaskInventoryItem.cs +++ b/OpenSim/Framework/TaskInventoryItem.cs | |||
@@ -65,6 +65,7 @@ namespace OpenSim.Framework | |||
65 | private int _permsMask; | 65 | private int _permsMask; |
66 | private int _type = 0; | 66 | private int _type = 0; |
67 | private UUID _oldID = UUID.Zero; | 67 | private UUID _oldID = UUID.Zero; |
68 | private UUID _loadedID = UUID.Zero; | ||
68 | 69 | ||
69 | private bool _ownerChanged = false; | 70 | private bool _ownerChanged = false; |
70 | 71 | ||
@@ -234,6 +235,15 @@ namespace OpenSim.Framework | |||
234 | } | 235 | } |
235 | } | 236 | } |
236 | 237 | ||
238 | public UUID LoadedItemID { | ||
239 | get { | ||
240 | return _loadedID; | ||
241 | } | ||
242 | set { | ||
243 | _loadedID = value; | ||
244 | } | ||
245 | } | ||
246 | |||
237 | public UUID LastOwnerID { | 247 | public UUID LastOwnerID { |
238 | get { | 248 | get { |
239 | return _lastOwnerID; | 249 | return _lastOwnerID; |
@@ -359,8 +369,8 @@ namespace OpenSim.Framework | |||
359 | /// <param name="partID">The new part ID to which this item belongs</param> | 369 | /// <param name="partID">The new part ID to which this item belongs</param> |
360 | public void ResetIDs(UUID partID) | 370 | public void ResetIDs(UUID partID) |
361 | { | 371 | { |
362 | if (_oldID == UUID.Zero) | 372 | _loadedID = _oldID; |
363 | _oldID = ItemID; | 373 | _oldID = ItemID; |
364 | ItemID = UUID.Random(); | 374 | ItemID = UUID.Random(); |
365 | ParentPartID = partID; | 375 | ParentPartID = partID; |
366 | ParentID = partID; | 376 | ParentID = partID; |