示例#1
0
        public void RequestUpdateInventoryItem(IClientAPI remoteClient,
                                               UUID transactionID, InventoryItemBase item)
        {
            AssetXferUploader uploader = RequestXferUploader(transactionID);

            uploader.RequestUpdateInventoryItem(remoteClient, item);
        }
示例#2
0
        public void RequestUpdateInventoryItem(IClientAPI remoteClient,
                                               UUID transactionID, InventoryItemBase item)
        {
            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 ||
                item.AssetType == (int)CustomAssetType.AnimationSet)
            {
                AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString());
                if (oldAsset != null)
                {
                    uploader.SetOldData(oldAsset.Data);
                }
            }

            uploader.RequestUpdateInventoryItem(remoteClient, item);
        }
示例#3
0
        public void RequestUpdateInventoryItem(IClientAPI remoteClient,
                                               UUID transactionID, InventoryItemBase item)
        {
            AssetXferUploader uploader = null;

            lock (XferUploaders)
            {
                if (XferUploaders.ContainsKey(transactionID))
                {
                    uploader = XferUploaders[transactionID];
                }
            }

            if (uploader != null)
            {
                uploader.RequestUpdateInventoryItem(remoteClient, transactionID, item);
            }
            else
            {
                m_log.ErrorFormat(
                    "[AGENT ASSET TRANSACTIONS]: Could not find uploader with transaction ID {0} when handling request to update inventory item {1} for {2}",
                    transactionID, item.Name, remoteClient.Name);
            }
        }