Asset System work... Refactoring, documentation, making more sub-class friendly, and oh yeah -- Asset Downloading no longer requires blocking, and timeouts have been added through-out.
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@840 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -19,7 +19,11 @@ namespace libsecondlife.InventorySystem
|
||||
{
|
||||
if ( (AssetID != null) && (AssetID != LLUUID.Zero) )
|
||||
{
|
||||
base.iManager.AssetManager.GetInventoryAsset(this);
|
||||
AssetRequestDownload request = base.iManager.AssetManager.RequestInventoryAsset(this);
|
||||
if (request.Wait(AssetManager.DefaultTimeout) != AssetRequestDownload.RequestStatus.Success)
|
||||
{
|
||||
throw new Exception("Asset (" + AssetID.ToStringHyphenated() + ") unavailable (" + request.StatusMsg + ") for " + this.Name);
|
||||
}
|
||||
return ((AssetScript)Asset).Source;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user