Allow AssetID to be LLUUID.Zero for scripts, since the asset ID is no longer supplied when downloading inventory. This may be a problem with other assets :-(

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@873 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Michael Cortez
2007-01-22 23:45:11 +00:00
parent ecbe10453e
commit c1c9e80a1f
2 changed files with 5 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ namespace libsecondlife.AssetSystem
}
#endregion
#region Callback Handlers
#region Callback Handlers (Uploading)
private void AssetUploadCompleteCallbackHandler(Packet packet, Simulator simulator)
{
@@ -320,6 +320,9 @@ namespace libsecondlife.AssetSystem
curUploadRequest.ConfirmXferPacket(reply.XferID.ID, reply.XferID.Packet);
}
#endregion
#region Callback Handlers (Downloading)
// Download stuff
private void TransferInfoCallbackHandler(Packet packet, Simulator simulator)

View File

@@ -128,7 +128,7 @@ namespace libsecondlife.InventorySystem
}
else
{
if ((AssetID != null) && (AssetID != LLUUID.Zero))
if ((AssetID != null))
{
AssetRequestDownload request = base.iManager.AssetManager.RequestInventoryAsset(this);
if (request.Wait(AssetManager.DefaultTimeout) != AssetRequestDownload.RequestStatus.Success)