diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/SimClient.cs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OpenSim.RegionServer/SimClient.cs b/OpenSim.RegionServer/SimClient.cs index 210e0d9..b62d018 100644 --- a/OpenSim.RegionServer/SimClient.cs +++ b/OpenSim.RegionServer/SimClient.cs | |||
@@ -279,15 +279,12 @@ namespace OpenSim | |||
279 | break; | 279 | break; |
280 | case PacketType.AssetUploadRequest: | 280 | case PacketType.AssetUploadRequest: |
281 | AssetUploadRequestPacket request = (AssetUploadRequestPacket)Pack; | 281 | AssetUploadRequestPacket request = (AssetUploadRequestPacket)Pack; |
282 | Console.WriteLine("upload request "+ request.AssetBlock.TransactionID); | ||
283 | AssetBase newAsset = OpenSimRoot.Instance.AssetCache.UploadPacket(request, LLUUID.Random()); | 282 | AssetBase newAsset = OpenSimRoot.Instance.AssetCache.UploadPacket(request, LLUUID.Random()); |
284 | if (newAsset != null) | 283 | if ((newAsset != null) && (this.newAssetFolder != LLUUID.Zero)) |
285 | { | 284 | { |
286 | OpenSimRoot.Instance.InventoryCache.AddNewInventoryItem(this, this.newAssetFolder, newAsset); | 285 | OpenSimRoot.Instance.InventoryCache.AddNewInventoryItem(this, this.newAssetFolder, newAsset); |
287 | } | 286 | } |
288 | Console.WriteLine(request.ToString()); | 287 | |
289 | Console.WriteLine("combined uuid is " + request.AssetBlock.TransactionID.Combine(this.SecureSessionID).ToStringHyphenated()); | ||
290 | |||
291 | AssetUploadCompletePacket response = new AssetUploadCompletePacket(); | 288 | AssetUploadCompletePacket response = new AssetUploadCompletePacket(); |
292 | response.AssetBlock.Type =request.AssetBlock.Type; | 289 | response.AssetBlock.Type =request.AssetBlock.Type; |
293 | response.AssetBlock.Success = true; | 290 | response.AssetBlock.Success = true; |