If a scene object part UUID is changed (only possible when not in a scene), then adjust the inventory items to point to the new uuid as well

This commit is contained in:
Justin Clark-Casey (justincc)
2010-09-07 03:41:29 +01:00
parent 84ad9e4d4e
commit f7b28dd321
4 changed files with 17 additions and 8 deletions

View File

@@ -348,15 +348,15 @@ 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;
OldItemID = ItemID;
ItemID = UUID.Random();
ParentPartID = partID;
ParentID = partID;
}
public TaskInventoryItem()
{
_creationDate = (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
CreationDate = (uint)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
}
}
}