mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
From: Alan Webb <alan_webb@us.ibm.com>
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.
This commit is contained in:
@@ -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
|
||||
/// <param name="partID">The new part ID to which this item belongs</param>
|
||||
public void ResetIDs(UUID partID)
|
||||
{
|
||||
_oldID = _itemID;
|
||||
_itemID = UUID.Random();
|
||||
_parentPartID = partID;
|
||||
_parentID = partID;
|
||||
|
||||
Reference in New Issue
Block a user