Exemple #1
0
        public void RequestUpdateTaskInventoryItem(IClientAPI remoteClient,
                                                   SceneObjectPart part, UUID transactionID,
                                                   TaskInventoryItem item)
        {
            AssetXferUploader uploader = RequestXferUploader(transactionID);

            uploader.RequestUpdateTaskInventoryItem(remoteClient, item);
        }
Exemple #2
0
        public void RequestUpdateTaskInventoryItem(IClientAPI remoteClient,
                                                   SceneObjectPart part, UUID transactionID,
                                                   TaskInventoryItem 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.Type == (int)AssetType.Bodypart ||
                item.Type == (int)AssetType.Clothing ||
                item.Type == (int)CustomAssetType.AnimationSet)
            {
                AssetBase oldAsset = m_Scene.AssetService.Get(item.AssetID.ToString());
                if (oldAsset != null)
                {
                    uploader.SetOldData(oldAsset.Data);
                }
            }

            uploader.RequestUpdateTaskInventoryItem(remoteClient, item);
        }