From 7dbcf0570f0f5d521373df6d381c2d75dc2845d3 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Wed, 22 Apr 2009 18:09:55 +0000 Subject: From: Alan Webb Changes to enable script state persistence across non-restart serialization situations (inventory/OAR/attachments) Also fixing test cases for OAR and IAR so they don't barf with the new code. --- OpenSim/Framework/TaskInventoryItem.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs index 43d28e7..66da564 100644 --- a/OpenSim/Framework/TaskInventoryItem.cs +++ b/OpenSim/Framework/TaskInventoryItem.cs @@ -120,6 +120,7 @@ namespace OpenSim.Framework private UUID _permsGranter; private int _permsMask; private int _type = 0; + private UUID _oldID; public UUID AssetID { get { @@ -220,6 +221,15 @@ namespace OpenSim.Framework } } + public UUID OldItemID { + get { + return _oldID; + } + set { + _oldID = value; + } + } + public UUID LastOwnerID { get { return _lastOwnerID; @@ -327,6 +337,7 @@ namespace OpenSim.Framework /// The new part ID to which this item belongs public void ResetIDs(UUID partID) { + _oldID = _itemID; _itemID = UUID.Random(); _parentPartID = partID; _parentID = partID; -- cgit v1.1