mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Added assets service method AssetsExist(), which returns whether the given list of assets exist.
This method is used to optimize sending assets with embedded assets: e.g., when a Hypergrid visitor takes an item into the inventory.
This commit is contained in:
@@ -1038,6 +1038,18 @@ namespace OpenSim.Region.CoreModules.Asset
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool[] AssetsExist(string[] ids)
|
||||
{
|
||||
bool[] exist = new bool[ids.Length];
|
||||
|
||||
for (int i = 0; i < ids.Length; i++)
|
||||
{
|
||||
exist[i] = Check(ids[i]);
|
||||
}
|
||||
|
||||
return exist;
|
||||
}
|
||||
|
||||
public string Store(AssetBase asset)
|
||||
{
|
||||
if (asset.FullID == UUID.Zero)
|
||||
|
||||
Reference in New Issue
Block a user