mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
a few test changes
This commit is contained in:
@@ -332,8 +332,23 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return UUID.Zero;
|
||||
}
|
||||
|
||||
UUID mid = data is null ? Util.ComputeSHA1UUID(UUID.ZeroString) : Util.ComputeSHA1UUID(data);
|
||||
// this may be bad
|
||||
if (mid.Equals(item.AssetID))
|
||||
return mid;
|
||||
|
||||
AssetBase matasset = new(mid, item.Name, (sbyte)item.Type, avatarId.ToString())
|
||||
{
|
||||
Description = item.Description,
|
||||
Data = data ?? (new byte[1])
|
||||
};
|
||||
item.AssetID = matasset.FullID;
|
||||
AssetService.Store(matasset);
|
||||
|
||||
sop.Inventory.UpdateInventoryItem(item);
|
||||
avatar.ControllingClient.SendAlertMessage("Material updated");
|
||||
break;
|
||||
|
||||
return matasset.FullID;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user