mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
Reinstate the part of the id theft protection that was lost in a long ago merge
This commit is contained in:
@@ -172,6 +172,16 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||
{
|
||||
AssetXferUploader uploader = RequestXferUploader(transactionID);
|
||||
|
||||
// Here we need to get the old asset to extract the
|
||||
// texture UUIDs if it's a wearable.
|
||||
if (item.Type == (int)AssetType.Bodypart ||
|
||||
item.Type == (int)AssetType.Clothing)
|
||||
{
|
||||
AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString());
|
||||
if (oldAsset != null)
|
||||
uploader.SetOldData(oldAsset.Data);
|
||||
}
|
||||
|
||||
uploader.RequestUpdateTaskInventoryItem(remoteClient, item);
|
||||
}
|
||||
|
||||
@@ -180,6 +190,16 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
|
||||
{
|
||||
AssetXferUploader uploader = RequestXferUploader(transactionID);
|
||||
|
||||
// Here we need to get the old asset to extract the
|
||||
// texture UUIDs if it's a wearable.
|
||||
if (item.AssetType == (int)AssetType.Bodypart ||
|
||||
item.AssetType == (int)AssetType.Clothing)
|
||||
{
|
||||
AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString());
|
||||
if (oldAsset != null)
|
||||
uploader.SetOldData(oldAsset.Data);
|
||||
}
|
||||
|
||||
uploader.RequestUpdateInventoryItem(remoteClient, item);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user